/*
'===============================================================================
'  Generated From - CSharp_EasyObject_BusinessEntity.vbgen
' 
'  ** IMPORTANT  ** 
'  How to Generate your stored procedures:
' 
'  SQL      = SQL_DAAB_StoredProcs.vbgen
'  
'  This object is 'abstract' which means you need to inherit from it to be able
'  to instantiate it.  This is very easily done. You can override properties and
'  methods in your derived class, this allows you to regenerate this class at any
'  time and not worry about overwriting custom code. 
'
'  NEVER EDIT THIS FILE.
'
'  public class YourObject :  _YourObject
'  {
'
'  }
'
'===============================================================================
*/

// Generated by MyGeneration Version # (1.3.0.3)

using System;
using System.Data;
using System.Data.Common;
using System.Configuration;
using System.Collections;
using System.Collections.Specialized;
using System.Xml;
using System.IO;

using Microsoft.Practices.EnterpriseLibrary.Data;
using NCI.EasyObjects;

namespace CMS.DAL
{

	#region Schema

	public class EntryVisaSchema : NCI.EasyObjects.Schema
	{
		private static ArrayList _entries;
		public static SchemaItem EntryVisaID = new SchemaItem("EntryVisaID", DbType.Int32, true, false, false, true, false, false);
		public static SchemaItem FullName = new SchemaItem("FullName", DbType.String, SchemaItemJustify.None, 250, true, false, false, false);
		public static SchemaItem Email = new SchemaItem("Email", DbType.String, SchemaItemJustify.None, 250, true, false, false, false);
		public static SchemaItem ConfirmEmail = new SchemaItem("ConfirmEmail", DbType.String, SchemaItemJustify.None, 250, true, false, false, false);
		public static SchemaItem Tel = new SchemaItem("Tel", DbType.String, SchemaItemJustify.None, 250, true, false, false, false);
		public static SchemaItem Fax = new SchemaItem("Fax", DbType.String, SchemaItemJustify.None, 250, true, false, false, false);
		public static SchemaItem Address = new SchemaItem("Address", DbType.String, SchemaItemJustify.None, 250, true, false, false, false);
		public static SchemaItem PortOfArrival = new SchemaItem("PortOfArrival", DbType.String, SchemaItemJustify.None, 250, true, false, false, false);
		public static SchemaItem ArrivalDate = new SchemaItem("ArrivalDate", DbType.Int32, false, true, false, false, false, false);
		public static SchemaItem ExitDate = new SchemaItem("ExitDate", DbType.Int32, false, true, false, false, false, false);
		public static SchemaItem VisaPeriod = new SchemaItem("VisaPeriod", DbType.String, SchemaItemJustify.None, 250, true, false, false, false);
		public static SchemaItem NumberOfEntry = new SchemaItem("NumberOfEntry", DbType.String, SchemaItemJustify.None, 250, true, false, false, false);
		public static SchemaItem PurposeOfEntry = new SchemaItem("PurposeOfEntry", DbType.String, SchemaItemJustify.None, 250, true, false, false, false);
		public static SchemaItem PaymentID = new SchemaItem("PaymentID", DbType.Int32, false, true, false, false, false, false);
		public static SchemaItem OtherRequest = new SchemaItem("OtherRequest", DbType.String, SchemaItemJustify.None, 1073741823, true, false, false, false);
		public static SchemaItem FullName1 = new SchemaItem("FullName1", DbType.String, SchemaItemJustify.None, 250, true, false, false, false);
		public static SchemaItem FullName2 = new SchemaItem("FullName2", DbType.String, SchemaItemJustify.None, 250, true, false, false, false);
		public static SchemaItem FullName3 = new SchemaItem("FullName3", DbType.String, SchemaItemJustify.None, 250, true, false, false, false);
		public static SchemaItem FullName4 = new SchemaItem("FullName4", DbType.String, SchemaItemJustify.None, 250, true, false, false, false);
		public static SchemaItem FullName5 = new SchemaItem("FullName5", DbType.String, SchemaItemJustify.None, 250, true, false, false, false);
		public static SchemaItem FullName6 = new SchemaItem("FullName6", DbType.String, SchemaItemJustify.None, 250, true, false, false, false);
		public static SchemaItem FullName7 = new SchemaItem("FullName7", DbType.String, SchemaItemJustify.None, 250, true, false, false, false);
		public static SchemaItem FullName8 = new SchemaItem("FullName8", DbType.String, SchemaItemJustify.None, 250, true, false, false, false);
		public static SchemaItem Gender1 = new SchemaItem("Gender1", DbType.Int32, false, true, false, false, false, false);
		public static SchemaItem Gender2 = new SchemaItem("Gender2", DbType.Int32, false, true, false, false, false, false);
		public static SchemaItem Gender3 = new SchemaItem("Gender3", DbType.Int32, false, true, false, false, false, false);
		public static SchemaItem Gender4 = new SchemaItem("Gender4", DbType.Int32, false, true, false, false, false, false);
		public static SchemaItem Gender5 = new SchemaItem("Gender5", DbType.Int32, false, true, false, false, false, false);
		public static SchemaItem Gender6 = new SchemaItem("Gender6", DbType.Int32, false, true, false, false, false, false);
		public static SchemaItem Gender7 = new SchemaItem("Gender7", DbType.Int32, false, true, false, false, false, false);
		public static SchemaItem Gender8 = new SchemaItem("Gender8", DbType.Int32, false, true, false, false, false, false);
		public static SchemaItem DoB1 = new SchemaItem("DoB1", DbType.Int32, false, true, false, false, false, false);
		public static SchemaItem DoB2 = new SchemaItem("DoB2", DbType.Int32, false, true, false, false, false, false);
		public static SchemaItem DoB3 = new SchemaItem("DoB3", DbType.Int32, false, true, false, false, false, false);
		public static SchemaItem DoB4 = new SchemaItem("DoB4", DbType.Int32, false, true, false, false, false, false);
		public static SchemaItem DoB5 = new SchemaItem("DoB5", DbType.Int32, false, true, false, false, false, false);
		public static SchemaItem DoB6 = new SchemaItem("DoB6", DbType.Int32, false, true, false, false, false, false);
		public static SchemaItem DoB7 = new SchemaItem("DoB7", DbType.Int32, false, true, false, false, false, false);
		public static SchemaItem DoB8 = new SchemaItem("DoB8", DbType.Int32, false, true, false, false, false, false);
		public static SchemaItem Nationality1 = new SchemaItem("Nationality1", DbType.String, SchemaItemJustify.None, 250, true, false, false, false);
		public static SchemaItem Nationality2 = new SchemaItem("Nationality2", DbType.String, SchemaItemJustify.None, 250, true, false, false, false);
		public static SchemaItem Nationality3 = new SchemaItem("Nationality3", DbType.String, SchemaItemJustify.None, 250, true, false, false, false);
		public static SchemaItem Nationality4 = new SchemaItem("Nationality4", DbType.String, SchemaItemJustify.None, 250, true, false, false, false);
		public static SchemaItem Nationality5 = new SchemaItem("Nationality5", DbType.String, SchemaItemJustify.None, 250, true, false, false, false);
		public static SchemaItem Nationality6 = new SchemaItem("Nationality6", DbType.String, SchemaItemJustify.None, 250, true, false, false, false);
		public static SchemaItem Nationality7 = new SchemaItem("Nationality7", DbType.String, SchemaItemJustify.None, 250, true, false, false, false);
		public static SchemaItem Nationality8 = new SchemaItem("Nationality8", DbType.String, SchemaItemJustify.None, 250, true, false, false, false);
		public static SchemaItem PassportNo1 = new SchemaItem("PassportNo1", DbType.String, SchemaItemJustify.None, 250, true, false, false, false);
		public static SchemaItem PassportNo2 = new SchemaItem("PassportNo2", DbType.String, SchemaItemJustify.None, 250, true, false, false, false);
		public static SchemaItem PassportNo3 = new SchemaItem("PassportNo3", DbType.String, SchemaItemJustify.None, 250, true, false, false, false);
		public static SchemaItem PassportNo4 = new SchemaItem("PassportNo4", DbType.String, SchemaItemJustify.None, 250, true, false, false, false);
		public static SchemaItem PassportNo5 = new SchemaItem("PassportNo5", DbType.String, SchemaItemJustify.None, 250, true, false, false, false);
		public static SchemaItem PassportNo6 = new SchemaItem("PassportNo6", DbType.String, SchemaItemJustify.None, 250, true, false, false, false);
		public static SchemaItem PassportNo7 = new SchemaItem("PassportNo7", DbType.String, SchemaItemJustify.None, 250, true, false, false, false);
		public static SchemaItem PassportNo8 = new SchemaItem("PassportNo8", DbType.String, SchemaItemJustify.None, 250, true, false, false, false);
		public static SchemaItem ExpiryDate1 = new SchemaItem("ExpiryDate1", DbType.Int32, false, true, false, false, false, false);
		public static SchemaItem ExpiryDate2 = new SchemaItem("ExpiryDate2", DbType.Int32, false, true, false, false, false, false);
		public static SchemaItem ExpiryDate3 = new SchemaItem("ExpiryDate3", DbType.Int32, false, true, false, false, false, false);
		public static SchemaItem ExpiryDate4 = new SchemaItem("ExpiryDate4", DbType.Int32, false, true, false, false, false, false);
		public static SchemaItem ExpiryDate5 = new SchemaItem("ExpiryDate5", DbType.Int32, false, true, false, false, false, false);
		public static SchemaItem ExpiryDate6 = new SchemaItem("ExpiryDate6", DbType.Int32, false, true, false, false, false, false);
		public static SchemaItem ExpiryDate7 = new SchemaItem("ExpiryDate7", DbType.Int32, false, true, false, false, false, false);
		public static SchemaItem ExpiryDate8 = new SchemaItem("ExpiryDate8", DbType.Int32, false, true, false, false, false, false);
		public static SchemaItem Status = new SchemaItem("Status", DbType.Int32, false, true, false, false, false, false);
		public static SchemaItem BookingDate = new SchemaItem("BookingDate", DbType.Int32, false, true, false, false, false, false);

		public override ArrayList SchemaEntries
		{
			get
			{
				if (_entries == null )
				{
					_entries = new ArrayList();
					_entries.Add(EntryVisaSchema.EntryVisaID);
					_entries.Add(EntryVisaSchema.FullName);
					_entries.Add(EntryVisaSchema.Email);
					_entries.Add(EntryVisaSchema.ConfirmEmail);
					_entries.Add(EntryVisaSchema.Tel);
					_entries.Add(EntryVisaSchema.Fax);
					_entries.Add(EntryVisaSchema.Address);
					_entries.Add(EntryVisaSchema.PortOfArrival);
					_entries.Add(EntryVisaSchema.ArrivalDate);
					_entries.Add(EntryVisaSchema.ExitDate);
					_entries.Add(EntryVisaSchema.VisaPeriod);
					_entries.Add(EntryVisaSchema.NumberOfEntry);
					_entries.Add(EntryVisaSchema.PurposeOfEntry);
					_entries.Add(EntryVisaSchema.PaymentID);
					_entries.Add(EntryVisaSchema.OtherRequest);
					_entries.Add(EntryVisaSchema.FullName1);
					_entries.Add(EntryVisaSchema.FullName2);
					_entries.Add(EntryVisaSchema.FullName3);
					_entries.Add(EntryVisaSchema.FullName4);
					_entries.Add(EntryVisaSchema.FullName5);
					_entries.Add(EntryVisaSchema.FullName6);
					_entries.Add(EntryVisaSchema.FullName7);
					_entries.Add(EntryVisaSchema.FullName8);
					_entries.Add(EntryVisaSchema.Gender1);
					_entries.Add(EntryVisaSchema.Gender2);
					_entries.Add(EntryVisaSchema.Gender3);
					_entries.Add(EntryVisaSchema.Gender4);
					_entries.Add(EntryVisaSchema.Gender5);
					_entries.Add(EntryVisaSchema.Gender6);
					_entries.Add(EntryVisaSchema.Gender7);
					_entries.Add(EntryVisaSchema.Gender8);
					_entries.Add(EntryVisaSchema.DoB1);
					_entries.Add(EntryVisaSchema.DoB2);
					_entries.Add(EntryVisaSchema.DoB3);
					_entries.Add(EntryVisaSchema.DoB4);
					_entries.Add(EntryVisaSchema.DoB5);
					_entries.Add(EntryVisaSchema.DoB6);
					_entries.Add(EntryVisaSchema.DoB7);
					_entries.Add(EntryVisaSchema.DoB8);
					_entries.Add(EntryVisaSchema.Nationality1);
					_entries.Add(EntryVisaSchema.Nationality2);
					_entries.Add(EntryVisaSchema.Nationality3);
					_entries.Add(EntryVisaSchema.Nationality4);
					_entries.Add(EntryVisaSchema.Nationality5);
					_entries.Add(EntryVisaSchema.Nationality6);
					_entries.Add(EntryVisaSchema.Nationality7);
					_entries.Add(EntryVisaSchema.Nationality8);
					_entries.Add(EntryVisaSchema.PassportNo1);
					_entries.Add(EntryVisaSchema.PassportNo2);
					_entries.Add(EntryVisaSchema.PassportNo3);
					_entries.Add(EntryVisaSchema.PassportNo4);
					_entries.Add(EntryVisaSchema.PassportNo5);
					_entries.Add(EntryVisaSchema.PassportNo6);
					_entries.Add(EntryVisaSchema.PassportNo7);
					_entries.Add(EntryVisaSchema.PassportNo8);
					_entries.Add(EntryVisaSchema.ExpiryDate1);
					_entries.Add(EntryVisaSchema.ExpiryDate2);
					_entries.Add(EntryVisaSchema.ExpiryDate3);
					_entries.Add(EntryVisaSchema.ExpiryDate4);
					_entries.Add(EntryVisaSchema.ExpiryDate5);
					_entries.Add(EntryVisaSchema.ExpiryDate6);
					_entries.Add(EntryVisaSchema.ExpiryDate7);
					_entries.Add(EntryVisaSchema.ExpiryDate8);
					_entries.Add(EntryVisaSchema.Status);
					_entries.Add(EntryVisaSchema.BookingDate);
				}
				return _entries;
			}
		}
		
		public static bool HasAutoKey 
		{
			get { return true;	}
		}

		public static bool HasRowID 
		{
			get { return false;	}
		}
	}
	#endregion

	public abstract class _EntryVisa : EasyObject
	{

		public _EntryVisa()
		{
			EntryVisaSchema _schema = new EntryVisaSchema();
			this.SchemaEntries = _schema.SchemaEntries;
			this.SchemaGlobal = "dbo";
		}
		
		public override void FlushData() 	 
		{ 	 
			this._whereClause = null; 	 
			this._aggregateClause = null; 	 
			base.FlushData(); 	 
		}
			   
		/// <summary>
		/// Loads the business object with info from the database, based on the requested primary key.
		/// </summary>
		/// <param name="EntryVisaID"></param>
		/// <returns>A Boolean indicating success or failure of the query</returns>
		public bool LoadByPrimaryKey(int EntryVisaID)
		{
			switch(this.DefaultCommandType)
			{
				case CommandType.StoredProcedure:
					ListDictionary parameters = new ListDictionary();

					// Add in parameters
					parameters.Add(EntryVisaSchema.EntryVisaID.FieldName, EntryVisaID);

					return base.LoadFromSql(this.SchemaStoredProcedureWithSeparator + "sp_GetEntryVisa", parameters, CommandType.StoredProcedure);

				case CommandType.Text:
					this.Query.ClearAll();
					this.Where.WhereClauseReset();
					this.Where.EntryVisaID.Value = EntryVisaID;
					return this.Query.Load();

				default:
					throw new ArgumentException("Invalid CommandType", "commandType");
			}
		}
	
		/// <summary>
		/// Loads all records from the table.
		/// </summary>
		/// <returns>A Boolean indicating success or failure of the query</returns>
		public bool LoadAll()
		{
			switch(this.DefaultCommandType)
			{
				case CommandType.StoredProcedure:
					return base.LoadFromSql(this.SchemaStoredProcedureWithSeparator + "sp_GetAllEntryVisa", null, CommandType.StoredProcedure);

				case CommandType.Text:
					this.Query.ClearAll();
					this.Where.WhereClauseReset();
					return this.Query.Load();

				default:
					throw new ArgumentException("Invalid CommandType", "commandType");
			}
		}

		/// <summary>
		/// Adds a new record to the internal table.
		/// </summary>
		public override void AddNew()
		{
			base.AddNew();
			this.ApplyDefaults();
		}

		/// <summary>
		/// Apply any default values to columns
		/// </summary>
		protected override void ApplyDefaults()
		{
		}

		protected override DbCommand GetInsertCommand(CommandType commandType)
		{	
			DbCommand dbCommand;

			// Create the Database object, using the default database service. The
			// default database service is determined through configuration.
			Database db = GetDatabase();

			switch(commandType)
			{
				case CommandType.StoredProcedure:
					string sqlCommand = this.SchemaStoredProcedureWithSeparator + "sp_AddEntryVisa";
					dbCommand = db.GetStoredProcCommand(sqlCommand);

					db.AddParameter(dbCommand, "EntryVisaID", DbType.Int32, 0, ParameterDirection.Output, true, 0, 0, "EntryVisaID", DataRowVersion.Default, Convert.DBNull);
					CreateParameters(db, dbCommand);
					
					return dbCommand;

				case CommandType.Text:
					this.Query.ClearAll();
					this.Where.WhereClauseReset();
					foreach(SchemaItem item in this.SchemaEntries)
					{
						if (!item.IsComputed)
						{
							if ((item.IsAutoKey && this.IdentityInsert) || !item.IsAutoKey)
							{
								this.Query.AddInsertColumn(item);
							}
						}
					}
					dbCommand = this.Query.GetInsertCommandWrapper();

					dbCommand.Parameters.Clear();
					if (this.IdentityInsert)
					{
						db.AddInParameter(dbCommand, "EntryVisaID", DbType.Int32, "EntryVisaID", DataRowVersion.Default);
					}
					else
					{
						db.AddParameter(dbCommand, "EntryVisaID", DbType.Int32, 0, ParameterDirection.Output, true, 0, 0, "EntryVisaID", DataRowVersion.Default, Convert.DBNull);
					}
					CreateParameters(db, dbCommand);

					return dbCommand;

				default:
					throw new ArgumentException("Invalid CommandType", "commandType");
			}
		}

		protected override DbCommand GetUpdateCommand(CommandType commandType)
		{
            DbCommand dbCommand;

			// Create the Database object, using the default database service. The
			// default database service is determined through configuration.
			Database db = GetDatabase();

			switch(commandType)
			{
				case CommandType.StoredProcedure:
					string sqlCommand = this.SchemaStoredProcedureWithSeparator + "sp_UpdateEntryVisa";
					dbCommand = db.GetStoredProcCommand(sqlCommand);

					db.AddInParameter(dbCommand, "EntryVisaID", DbType.Int32, "EntryVisaID", DataRowVersion.Current);
					CreateParameters(db, dbCommand);
					
					return dbCommand;

				case CommandType.Text:
					this.Query.ClearAll();
					foreach(SchemaItem item in this.SchemaEntries)
					{
						if (!(item.IsAutoKey || item.IsComputed))
						{
							this.Query.AddUpdateColumn(item);
						}
					}

					this.Where.WhereClauseReset();
					this.Where.EntryVisaID.Operator = WhereParameter.Operand.Equal;
					dbCommand = this.Query.GetUpdateCommandWrapper();

					dbCommand.Parameters.Clear();
					CreateParameters(db, dbCommand);
					db.AddInParameter(dbCommand, "EntryVisaID", DbType.Int32, "EntryVisaID", DataRowVersion.Current);
					
					return dbCommand;

				default:
					throw new ArgumentException("Invalid CommandType", "commandType");
			}
		}

		protected override DbCommand GetDeleteCommand(CommandType commandType)
		{
            DbCommand dbCommand;

			// Create the Database object, using the default database service. The
			// default database service is determined through configuration.
			Database db = GetDatabase();

			switch(commandType)
			{
				case CommandType.StoredProcedure:
					string sqlCommand = this.SchemaStoredProcedureWithSeparator + "sp_DeleteEntryVisa";
					dbCommand = db.GetStoredProcCommand(sqlCommand);
					db.AddInParameter(dbCommand, "EntryVisaID", DbType.Int32, "EntryVisaID", DataRowVersion.Current);
					
					return dbCommand;

				case CommandType.Text:
					this.Query.ClearAll();
					this.Where.WhereClauseReset();
					this.Where.EntryVisaID.Operator = WhereParameter.Operand.Equal;
					dbCommand = this.Query.GetDeleteCommandWrapper();

					dbCommand.Parameters.Clear();
					db.AddInParameter(dbCommand, "EntryVisaID", DbType.Int32, "EntryVisaID", DataRowVersion.Current);
					
					return dbCommand;

				default:
					throw new ArgumentException("Invalid CommandType", "commandType");
			}
		}

		private void CreateParameters(Database db, DbCommand dbCommand)
		{
			db.AddInParameter(dbCommand, "FullName", DbType.String, "FullName", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "Email", DbType.String, "Email", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "ConfirmEmail", DbType.String, "ConfirmEmail", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "Tel", DbType.String, "Tel", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "Fax", DbType.String, "Fax", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "Address", DbType.String, "Address", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "PortOfArrival", DbType.String, "PortOfArrival", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "ArrivalDate", DbType.Int32, "ArrivalDate", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "ExitDate", DbType.Int32, "ExitDate", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "VisaPeriod", DbType.String, "VisaPeriod", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "NumberOfEntry", DbType.String, "NumberOfEntry", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "PurposeOfEntry", DbType.String, "PurposeOfEntry", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "PaymentID", DbType.Int32, "PaymentID", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "OtherRequest", DbType.String, "OtherRequest", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "FullName1", DbType.String, "FullName1", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "FullName2", DbType.String, "FullName2", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "FullName3", DbType.String, "FullName3", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "FullName4", DbType.String, "FullName4", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "FullName5", DbType.String, "FullName5", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "FullName6", DbType.String, "FullName6", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "FullName7", DbType.String, "FullName7", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "FullName8", DbType.String, "FullName8", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "Gender1", DbType.Int32, "Gender1", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "Gender2", DbType.Int32, "Gender2", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "Gender3", DbType.Int32, "Gender3", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "Gender4", DbType.Int32, "Gender4", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "Gender5", DbType.Int32, "Gender5", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "Gender6", DbType.Int32, "Gender6", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "Gender7", DbType.Int32, "Gender7", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "Gender8", DbType.Int32, "Gender8", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "DoB1", DbType.Int32, "DoB1", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "DoB2", DbType.Int32, "DoB2", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "DoB3", DbType.Int32, "DoB3", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "DoB4", DbType.Int32, "DoB4", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "DoB5", DbType.Int32, "DoB5", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "DoB6", DbType.Int32, "DoB6", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "DoB7", DbType.Int32, "DoB7", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "DoB8", DbType.Int32, "DoB8", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "Nationality1", DbType.String, "Nationality1", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "Nationality2", DbType.String, "Nationality2", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "Nationality3", DbType.String, "Nationality3", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "Nationality4", DbType.String, "Nationality4", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "Nationality5", DbType.String, "Nationality5", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "Nationality6", DbType.String, "Nationality6", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "Nationality7", DbType.String, "Nationality7", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "Nationality8", DbType.String, "Nationality8", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "PassportNo1", DbType.String, "PassportNo1", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "PassportNo2", DbType.String, "PassportNo2", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "PassportNo3", DbType.String, "PassportNo3", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "PassportNo4", DbType.String, "PassportNo4", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "PassportNo5", DbType.String, "PassportNo5", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "PassportNo6", DbType.String, "PassportNo6", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "PassportNo7", DbType.String, "PassportNo7", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "PassportNo8", DbType.String, "PassportNo8", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "ExpiryDate1", DbType.Int32, "ExpiryDate1", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "ExpiryDate2", DbType.Int32, "ExpiryDate2", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "ExpiryDate3", DbType.Int32, "ExpiryDate3", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "ExpiryDate4", DbType.Int32, "ExpiryDate4", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "ExpiryDate5", DbType.Int32, "ExpiryDate5", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "ExpiryDate6", DbType.Int32, "ExpiryDate6", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "ExpiryDate7", DbType.Int32, "ExpiryDate7", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "ExpiryDate8", DbType.Int32, "ExpiryDate8", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "Status", DbType.Int32, "Status", DataRowVersion.Current);
			db.AddInParameter(dbCommand, "BookingDate", DbType.Int32, "BookingDate", DataRowVersion.Current);
		}
		
		#region Properties
		public virtual int EntryVisaID
		{
			get
			{
				return this.GetInteger(EntryVisaSchema.EntryVisaID.FieldName);
	    	}
			set
			{
				this.SetInteger(EntryVisaSchema.EntryVisaID.FieldName, value);
			}
		}
		public virtual string FullName
		{
			get
			{
				return this.GetString(EntryVisaSchema.FullName.FieldName);
	    	}
			set
			{
				this.SetString(EntryVisaSchema.FullName.FieldName, value);
			}
		}
		public virtual string Email
		{
			get
			{
				return this.GetString(EntryVisaSchema.Email.FieldName);
	    	}
			set
			{
				this.SetString(EntryVisaSchema.Email.FieldName, value);
			}
		}
		public virtual string ConfirmEmail
		{
			get
			{
				return this.GetString(EntryVisaSchema.ConfirmEmail.FieldName);
	    	}
			set
			{
				this.SetString(EntryVisaSchema.ConfirmEmail.FieldName, value);
			}
		}
		public virtual string Tel
		{
			get
			{
				return this.GetString(EntryVisaSchema.Tel.FieldName);
	    	}
			set
			{
				this.SetString(EntryVisaSchema.Tel.FieldName, value);
			}
		}
		public virtual string Fax
		{
			get
			{
				return this.GetString(EntryVisaSchema.Fax.FieldName);
	    	}
			set
			{
				this.SetString(EntryVisaSchema.Fax.FieldName, value);
			}
		}
		public virtual string Address
		{
			get
			{
				return this.GetString(EntryVisaSchema.Address.FieldName);
	    	}
			set
			{
				this.SetString(EntryVisaSchema.Address.FieldName, value);
			}
		}
		public virtual string PortOfArrival
		{
			get
			{
				return this.GetString(EntryVisaSchema.PortOfArrival.FieldName);
	    	}
			set
			{
				this.SetString(EntryVisaSchema.PortOfArrival.FieldName, value);
			}
		}
		public virtual int ArrivalDate
		{
			get
			{
				return this.GetInteger(EntryVisaSchema.ArrivalDate.FieldName);
	    	}
			set
			{
				this.SetInteger(EntryVisaSchema.ArrivalDate.FieldName, value);
			}
		}
		public virtual int ExitDate
		{
			get
			{
				return this.GetInteger(EntryVisaSchema.ExitDate.FieldName);
	    	}
			set
			{
				this.SetInteger(EntryVisaSchema.ExitDate.FieldName, value);
			}
		}
		public virtual string VisaPeriod
		{
			get
			{
				return this.GetString(EntryVisaSchema.VisaPeriod.FieldName);
	    	}
			set
			{
				this.SetString(EntryVisaSchema.VisaPeriod.FieldName, value);
			}
		}
		public virtual string NumberOfEntry
		{
			get
			{
				return this.GetString(EntryVisaSchema.NumberOfEntry.FieldName);
	    	}
			set
			{
				this.SetString(EntryVisaSchema.NumberOfEntry.FieldName, value);
			}
		}
		public virtual string PurposeOfEntry
		{
			get
			{
				return this.GetString(EntryVisaSchema.PurposeOfEntry.FieldName);
	    	}
			set
			{
				this.SetString(EntryVisaSchema.PurposeOfEntry.FieldName, value);
			}
		}
		public virtual int PaymentID
		{
			get
			{
				return this.GetInteger(EntryVisaSchema.PaymentID.FieldName);
	    	}
			set
			{
				this.SetInteger(EntryVisaSchema.PaymentID.FieldName, value);
			}
		}
		public virtual string OtherRequest
		{
			get
			{
				return this.GetString(EntryVisaSchema.OtherRequest.FieldName);
	    	}
			set
			{
				this.SetString(EntryVisaSchema.OtherRequest.FieldName, value);
			}
		}
		public virtual string FullName1
		{
			get
			{
				return this.GetString(EntryVisaSchema.FullName1.FieldName);
	    	}
			set
			{
				this.SetString(EntryVisaSchema.FullName1.FieldName, value);
			}
		}
		public virtual string FullName2
		{
			get
			{
				return this.GetString(EntryVisaSchema.FullName2.FieldName);
	    	}
			set
			{
				this.SetString(EntryVisaSchema.FullName2.FieldName, value);
			}
		}
		public virtual string FullName3
		{
			get
			{
				return this.GetString(EntryVisaSchema.FullName3.FieldName);
	    	}
			set
			{
				this.SetString(EntryVisaSchema.FullName3.FieldName, value);
			}
		}
		public virtual string FullName4
		{
			get
			{
				return this.GetString(EntryVisaSchema.FullName4.FieldName);
	    	}
			set
			{
				this.SetString(EntryVisaSchema.FullName4.FieldName, value);
			}
		}
		public virtual string FullName5
		{
			get
			{
				return this.GetString(EntryVisaSchema.FullName5.FieldName);
	    	}
			set
			{
				this.SetString(EntryVisaSchema.FullName5.FieldName, value);
			}
		}
		public virtual string FullName6
		{
			get
			{
				return this.GetString(EntryVisaSchema.FullName6.FieldName);
	    	}
			set
			{
				this.SetString(EntryVisaSchema.FullName6.FieldName, value);
			}
		}
		public virtual string FullName7
		{
			get
			{
				return this.GetString(EntryVisaSchema.FullName7.FieldName);
	    	}
			set
			{
				this.SetString(EntryVisaSchema.FullName7.FieldName, value);
			}
		}
		public virtual string FullName8
		{
			get
			{
				return this.GetString(EntryVisaSchema.FullName8.FieldName);
	    	}
			set
			{
				this.SetString(EntryVisaSchema.FullName8.FieldName, value);
			}
		}
		public virtual int Gender1
		{
			get
			{
				return this.GetInteger(EntryVisaSchema.Gender1.FieldName);
	    	}
			set
			{
				this.SetInteger(EntryVisaSchema.Gender1.FieldName, value);
			}
		}
		public virtual int Gender2
		{
			get
			{
				return this.GetInteger(EntryVisaSchema.Gender2.FieldName);
	    	}
			set
			{
				this.SetInteger(EntryVisaSchema.Gender2.FieldName, value);
			}
		}
		public virtual int Gender3
		{
			get
			{
				return this.GetInteger(EntryVisaSchema.Gender3.FieldName);
	    	}
			set
			{
				this.SetInteger(EntryVisaSchema.Gender3.FieldName, value);
			}
		}
		public virtual int Gender4
		{
			get
			{
				return this.GetInteger(EntryVisaSchema.Gender4.FieldName);
	    	}
			set
			{
				this.SetInteger(EntryVisaSchema.Gender4.FieldName, value);
			}
		}
		public virtual int Gender5
		{
			get
			{
				return this.GetInteger(EntryVisaSchema.Gender5.FieldName);
	    	}
			set
			{
				this.SetInteger(EntryVisaSchema.Gender5.FieldName, value);
			}
		}
		public virtual int Gender6
		{
			get
			{
				return this.GetInteger(EntryVisaSchema.Gender6.FieldName);
	    	}
			set
			{
				this.SetInteger(EntryVisaSchema.Gender6.FieldName, value);
			}
		}
		public virtual int Gender7
		{
			get
			{
				return this.GetInteger(EntryVisaSchema.Gender7.FieldName);
	    	}
			set
			{
				this.SetInteger(EntryVisaSchema.Gender7.FieldName, value);
			}
		}
		public virtual int Gender8
		{
			get
			{
				return this.GetInteger(EntryVisaSchema.Gender8.FieldName);
	    	}
			set
			{
				this.SetInteger(EntryVisaSchema.Gender8.FieldName, value);
			}
		}
		public virtual int DoB1
		{
			get
			{
				return this.GetInteger(EntryVisaSchema.DoB1.FieldName);
	    	}
			set
			{
				this.SetInteger(EntryVisaSchema.DoB1.FieldName, value);
			}
		}
		public virtual int DoB2
		{
			get
			{
				return this.GetInteger(EntryVisaSchema.DoB2.FieldName);
	    	}
			set
			{
				this.SetInteger(EntryVisaSchema.DoB2.FieldName, value);
			}
		}
		public virtual int DoB3
		{
			get
			{
				return this.GetInteger(EntryVisaSchema.DoB3.FieldName);
	    	}
			set
			{
				this.SetInteger(EntryVisaSchema.DoB3.FieldName, value);
			}
		}
		public virtual int DoB4
		{
			get
			{
				return this.GetInteger(EntryVisaSchema.DoB4.FieldName);
	    	}
			set
			{
				this.SetInteger(EntryVisaSchema.DoB4.FieldName, value);
			}
		}
		public virtual int DoB5
		{
			get
			{
				return this.GetInteger(EntryVisaSchema.DoB5.FieldName);
	    	}
			set
			{
				this.SetInteger(EntryVisaSchema.DoB5.FieldName, value);
			}
		}
		public virtual int DoB6
		{
			get
			{
				return this.GetInteger(EntryVisaSchema.DoB6.FieldName);
	    	}
			set
			{
				this.SetInteger(EntryVisaSchema.DoB6.FieldName, value);
			}
		}
		public virtual int DoB7
		{
			get
			{
				return this.GetInteger(EntryVisaSchema.DoB7.FieldName);
	    	}
			set
			{
				this.SetInteger(EntryVisaSchema.DoB7.FieldName, value);
			}
		}
		public virtual int DoB8
		{
			get
			{
				return this.GetInteger(EntryVisaSchema.DoB8.FieldName);
	    	}
			set
			{
				this.SetInteger(EntryVisaSchema.DoB8.FieldName, value);
			}
		}
		public virtual string Nationality1
		{
			get
			{
				return this.GetString(EntryVisaSchema.Nationality1.FieldName);
	    	}
			set
			{
				this.SetString(EntryVisaSchema.Nationality1.FieldName, value);
			}
		}
		public virtual string Nationality2
		{
			get
			{
				return this.GetString(EntryVisaSchema.Nationality2.FieldName);
	    	}
			set
			{
				this.SetString(EntryVisaSchema.Nationality2.FieldName, value);
			}
		}
		public virtual string Nationality3
		{
			get
			{
				return this.GetString(EntryVisaSchema.Nationality3.FieldName);
	    	}
			set
			{
				this.SetString(EntryVisaSchema.Nationality3.FieldName, value);
			}
		}
		public virtual string Nationality4
		{
			get
			{
				return this.GetString(EntryVisaSchema.Nationality4.FieldName);
	    	}
			set
			{
				this.SetString(EntryVisaSchema.Nationality4.FieldName, value);
			}
		}
		public virtual string Nationality5
		{
			get
			{
				return this.GetString(EntryVisaSchema.Nationality5.FieldName);
	    	}
			set
			{
				this.SetString(EntryVisaSchema.Nationality5.FieldName, value);
			}
		}
		public virtual string Nationality6
		{
			get
			{
				return this.GetString(EntryVisaSchema.Nationality6.FieldName);
	    	}
			set
			{
				this.SetString(EntryVisaSchema.Nationality6.FieldName, value);
			}
		}
		public virtual string Nationality7
		{
			get
			{
				return this.GetString(EntryVisaSchema.Nationality7.FieldName);
	    	}
			set
			{
				this.SetString(EntryVisaSchema.Nationality7.FieldName, value);
			}
		}
		public virtual string Nationality8
		{
			get
			{
				return this.GetString(EntryVisaSchema.Nationality8.FieldName);
	    	}
			set
			{
				this.SetString(EntryVisaSchema.Nationality8.FieldName, value);
			}
		}
		public virtual string PassportNo1
		{
			get
			{
				return this.GetString(EntryVisaSchema.PassportNo1.FieldName);
	    	}
			set
			{
				this.SetString(EntryVisaSchema.PassportNo1.FieldName, value);
			}
		}
		public virtual string PassportNo2
		{
			get
			{
				return this.GetString(EntryVisaSchema.PassportNo2.FieldName);
	    	}
			set
			{
				this.SetString(EntryVisaSchema.PassportNo2.FieldName, value);
			}
		}
		public virtual string PassportNo3
		{
			get
			{
				return this.GetString(EntryVisaSchema.PassportNo3.FieldName);
	    	}
			set
			{
				this.SetString(EntryVisaSchema.PassportNo3.FieldName, value);
			}
		}
		public virtual string PassportNo4
		{
			get
			{
				return this.GetString(EntryVisaSchema.PassportNo4.FieldName);
	    	}
			set
			{
				this.SetString(EntryVisaSchema.PassportNo4.FieldName, value);
			}
		}
		public virtual string PassportNo5
		{
			get
			{
				return this.GetString(EntryVisaSchema.PassportNo5.FieldName);
	    	}
			set
			{
				this.SetString(EntryVisaSchema.PassportNo5.FieldName, value);
			}
		}
		public virtual string PassportNo6
		{
			get
			{
				return this.GetString(EntryVisaSchema.PassportNo6.FieldName);
	    	}
			set
			{
				this.SetString(EntryVisaSchema.PassportNo6.FieldName, value);
			}
		}
		public virtual string PassportNo7
		{
			get
			{
				return this.GetString(EntryVisaSchema.PassportNo7.FieldName);
	    	}
			set
			{
				this.SetString(EntryVisaSchema.PassportNo7.FieldName, value);
			}
		}
		public virtual string PassportNo8
		{
			get
			{
				return this.GetString(EntryVisaSchema.PassportNo8.FieldName);
	    	}
			set
			{
				this.SetString(EntryVisaSchema.PassportNo8.FieldName, value);
			}
		}
		public virtual int ExpiryDate1
		{
			get
			{
				return this.GetInteger(EntryVisaSchema.ExpiryDate1.FieldName);
	    	}
			set
			{
				this.SetInteger(EntryVisaSchema.ExpiryDate1.FieldName, value);
			}
		}
		public virtual int ExpiryDate2
		{
			get
			{
				return this.GetInteger(EntryVisaSchema.ExpiryDate2.FieldName);
	    	}
			set
			{
				this.SetInteger(EntryVisaSchema.ExpiryDate2.FieldName, value);
			}
		}
		public virtual int ExpiryDate3
		{
			get
			{
				return this.GetInteger(EntryVisaSchema.ExpiryDate3.FieldName);
	    	}
			set
			{
				this.SetInteger(EntryVisaSchema.ExpiryDate3.FieldName, value);
			}
		}
		public virtual int ExpiryDate4
		{
			get
			{
				return this.GetInteger(EntryVisaSchema.ExpiryDate4.FieldName);
	    	}
			set
			{
				this.SetInteger(EntryVisaSchema.ExpiryDate4.FieldName, value);
			}
		}
		public virtual int ExpiryDate5
		{
			get
			{
				return this.GetInteger(EntryVisaSchema.ExpiryDate5.FieldName);
	    	}
			set
			{
				this.SetInteger(EntryVisaSchema.ExpiryDate5.FieldName, value);
			}
		}
		public virtual int ExpiryDate6
		{
			get
			{
				return this.GetInteger(EntryVisaSchema.ExpiryDate6.FieldName);
	    	}
			set
			{
				this.SetInteger(EntryVisaSchema.ExpiryDate6.FieldName, value);
			}
		}
		public virtual int ExpiryDate7
		{
			get
			{
				return this.GetInteger(EntryVisaSchema.ExpiryDate7.FieldName);
	    	}
			set
			{
				this.SetInteger(EntryVisaSchema.ExpiryDate7.FieldName, value);
			}
		}
		public virtual int ExpiryDate8
		{
			get
			{
				return this.GetInteger(EntryVisaSchema.ExpiryDate8.FieldName);
	    	}
			set
			{
				this.SetInteger(EntryVisaSchema.ExpiryDate8.FieldName, value);
			}
		}
		public virtual int Status
		{
			get
			{
				return this.GetInteger(EntryVisaSchema.Status.FieldName);
	    	}
			set
			{
				this.SetInteger(EntryVisaSchema.Status.FieldName, value);
			}
		}
		public virtual int BookingDate
		{
			get
			{
				return this.GetInteger(EntryVisaSchema.BookingDate.FieldName);
	    	}
			set
			{
				this.SetInteger(EntryVisaSchema.BookingDate.FieldName, value);
			}
		}

		public override string TableName
		{
			get { return "EntryVisa"; }
		}
		
		#endregion		
		
		#region String Properties
		public virtual string s_EntryVisaID
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.EntryVisaID.FieldName) ? string.Empty : base.GetIntegerAsString(EntryVisaSchema.EntryVisaID.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.EntryVisaID.FieldName);
			    else
			        this.EntryVisaID = base.SetIntegerAsString(EntryVisaSchema.EntryVisaID.FieldName, value);
			}
		}
		public virtual string s_FullName
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.FullName.FieldName) ? string.Empty : base.GetStringAsString(EntryVisaSchema.FullName.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.FullName.FieldName);
			    else
			        this.FullName = base.SetStringAsString(EntryVisaSchema.FullName.FieldName, value);
			}
		}
		public virtual string s_Email
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.Email.FieldName) ? string.Empty : base.GetStringAsString(EntryVisaSchema.Email.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.Email.FieldName);
			    else
			        this.Email = base.SetStringAsString(EntryVisaSchema.Email.FieldName, value);
			}
		}
		public virtual string s_ConfirmEmail
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.ConfirmEmail.FieldName) ? string.Empty : base.GetStringAsString(EntryVisaSchema.ConfirmEmail.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.ConfirmEmail.FieldName);
			    else
			        this.ConfirmEmail = base.SetStringAsString(EntryVisaSchema.ConfirmEmail.FieldName, value);
			}
		}
		public virtual string s_Tel
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.Tel.FieldName) ? string.Empty : base.GetStringAsString(EntryVisaSchema.Tel.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.Tel.FieldName);
			    else
			        this.Tel = base.SetStringAsString(EntryVisaSchema.Tel.FieldName, value);
			}
		}
		public virtual string s_Fax
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.Fax.FieldName) ? string.Empty : base.GetStringAsString(EntryVisaSchema.Fax.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.Fax.FieldName);
			    else
			        this.Fax = base.SetStringAsString(EntryVisaSchema.Fax.FieldName, value);
			}
		}
		public virtual string s_Address
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.Address.FieldName) ? string.Empty : base.GetStringAsString(EntryVisaSchema.Address.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.Address.FieldName);
			    else
			        this.Address = base.SetStringAsString(EntryVisaSchema.Address.FieldName, value);
			}
		}
		public virtual string s_PortOfArrival
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.PortOfArrival.FieldName) ? string.Empty : base.GetStringAsString(EntryVisaSchema.PortOfArrival.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.PortOfArrival.FieldName);
			    else
			        this.PortOfArrival = base.SetStringAsString(EntryVisaSchema.PortOfArrival.FieldName, value);
			}
		}
		public virtual string s_ArrivalDate
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.ArrivalDate.FieldName) ? string.Empty : base.GetIntegerAsString(EntryVisaSchema.ArrivalDate.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.ArrivalDate.FieldName);
			    else
			        this.ArrivalDate = base.SetIntegerAsString(EntryVisaSchema.ArrivalDate.FieldName, value);
			}
		}
		public virtual string s_ExitDate
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.ExitDate.FieldName) ? string.Empty : base.GetIntegerAsString(EntryVisaSchema.ExitDate.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.ExitDate.FieldName);
			    else
			        this.ExitDate = base.SetIntegerAsString(EntryVisaSchema.ExitDate.FieldName, value);
			}
		}
		public virtual string s_VisaPeriod
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.VisaPeriod.FieldName) ? string.Empty : base.GetStringAsString(EntryVisaSchema.VisaPeriod.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.VisaPeriod.FieldName);
			    else
			        this.VisaPeriod = base.SetStringAsString(EntryVisaSchema.VisaPeriod.FieldName, value);
			}
		}
		public virtual string s_NumberOfEntry
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.NumberOfEntry.FieldName) ? string.Empty : base.GetStringAsString(EntryVisaSchema.NumberOfEntry.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.NumberOfEntry.FieldName);
			    else
			        this.NumberOfEntry = base.SetStringAsString(EntryVisaSchema.NumberOfEntry.FieldName, value);
			}
		}
		public virtual string s_PurposeOfEntry
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.PurposeOfEntry.FieldName) ? string.Empty : base.GetStringAsString(EntryVisaSchema.PurposeOfEntry.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.PurposeOfEntry.FieldName);
			    else
			        this.PurposeOfEntry = base.SetStringAsString(EntryVisaSchema.PurposeOfEntry.FieldName, value);
			}
		}
		public virtual string s_PaymentID
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.PaymentID.FieldName) ? string.Empty : base.GetIntegerAsString(EntryVisaSchema.PaymentID.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.PaymentID.FieldName);
			    else
			        this.PaymentID = base.SetIntegerAsString(EntryVisaSchema.PaymentID.FieldName, value);
			}
		}
		public virtual string s_OtherRequest
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.OtherRequest.FieldName) ? string.Empty : base.GetStringAsString(EntryVisaSchema.OtherRequest.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.OtherRequest.FieldName);
			    else
			        this.OtherRequest = base.SetStringAsString(EntryVisaSchema.OtherRequest.FieldName, value);
			}
		}
		public virtual string s_FullName1
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.FullName1.FieldName) ? string.Empty : base.GetStringAsString(EntryVisaSchema.FullName1.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.FullName1.FieldName);
			    else
			        this.FullName1 = base.SetStringAsString(EntryVisaSchema.FullName1.FieldName, value);
			}
		}
		public virtual string s_FullName2
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.FullName2.FieldName) ? string.Empty : base.GetStringAsString(EntryVisaSchema.FullName2.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.FullName2.FieldName);
			    else
			        this.FullName2 = base.SetStringAsString(EntryVisaSchema.FullName2.FieldName, value);
			}
		}
		public virtual string s_FullName3
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.FullName3.FieldName) ? string.Empty : base.GetStringAsString(EntryVisaSchema.FullName3.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.FullName3.FieldName);
			    else
			        this.FullName3 = base.SetStringAsString(EntryVisaSchema.FullName3.FieldName, value);
			}
		}
		public virtual string s_FullName4
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.FullName4.FieldName) ? string.Empty : base.GetStringAsString(EntryVisaSchema.FullName4.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.FullName4.FieldName);
			    else
			        this.FullName4 = base.SetStringAsString(EntryVisaSchema.FullName4.FieldName, value);
			}
		}
		public virtual string s_FullName5
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.FullName5.FieldName) ? string.Empty : base.GetStringAsString(EntryVisaSchema.FullName5.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.FullName5.FieldName);
			    else
			        this.FullName5 = base.SetStringAsString(EntryVisaSchema.FullName5.FieldName, value);
			}
		}
		public virtual string s_FullName6
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.FullName6.FieldName) ? string.Empty : base.GetStringAsString(EntryVisaSchema.FullName6.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.FullName6.FieldName);
			    else
			        this.FullName6 = base.SetStringAsString(EntryVisaSchema.FullName6.FieldName, value);
			}
		}
		public virtual string s_FullName7
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.FullName7.FieldName) ? string.Empty : base.GetStringAsString(EntryVisaSchema.FullName7.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.FullName7.FieldName);
			    else
			        this.FullName7 = base.SetStringAsString(EntryVisaSchema.FullName7.FieldName, value);
			}
		}
		public virtual string s_FullName8
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.FullName8.FieldName) ? string.Empty : base.GetStringAsString(EntryVisaSchema.FullName8.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.FullName8.FieldName);
			    else
			        this.FullName8 = base.SetStringAsString(EntryVisaSchema.FullName8.FieldName, value);
			}
		}
		public virtual string s_Gender1
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.Gender1.FieldName) ? string.Empty : base.GetIntegerAsString(EntryVisaSchema.Gender1.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.Gender1.FieldName);
			    else
			        this.Gender1 = base.SetIntegerAsString(EntryVisaSchema.Gender1.FieldName, value);
			}
		}
		public virtual string s_Gender2
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.Gender2.FieldName) ? string.Empty : base.GetIntegerAsString(EntryVisaSchema.Gender2.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.Gender2.FieldName);
			    else
			        this.Gender2 = base.SetIntegerAsString(EntryVisaSchema.Gender2.FieldName, value);
			}
		}
		public virtual string s_Gender3
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.Gender3.FieldName) ? string.Empty : base.GetIntegerAsString(EntryVisaSchema.Gender3.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.Gender3.FieldName);
			    else
			        this.Gender3 = base.SetIntegerAsString(EntryVisaSchema.Gender3.FieldName, value);
			}
		}
		public virtual string s_Gender4
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.Gender4.FieldName) ? string.Empty : base.GetIntegerAsString(EntryVisaSchema.Gender4.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.Gender4.FieldName);
			    else
			        this.Gender4 = base.SetIntegerAsString(EntryVisaSchema.Gender4.FieldName, value);
			}
		}
		public virtual string s_Gender5
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.Gender5.FieldName) ? string.Empty : base.GetIntegerAsString(EntryVisaSchema.Gender5.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.Gender5.FieldName);
			    else
			        this.Gender5 = base.SetIntegerAsString(EntryVisaSchema.Gender5.FieldName, value);
			}
		}
		public virtual string s_Gender6
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.Gender6.FieldName) ? string.Empty : base.GetIntegerAsString(EntryVisaSchema.Gender6.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.Gender6.FieldName);
			    else
			        this.Gender6 = base.SetIntegerAsString(EntryVisaSchema.Gender6.FieldName, value);
			}
		}
		public virtual string s_Gender7
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.Gender7.FieldName) ? string.Empty : base.GetIntegerAsString(EntryVisaSchema.Gender7.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.Gender7.FieldName);
			    else
			        this.Gender7 = base.SetIntegerAsString(EntryVisaSchema.Gender7.FieldName, value);
			}
		}
		public virtual string s_Gender8
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.Gender8.FieldName) ? string.Empty : base.GetIntegerAsString(EntryVisaSchema.Gender8.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.Gender8.FieldName);
			    else
			        this.Gender8 = base.SetIntegerAsString(EntryVisaSchema.Gender8.FieldName, value);
			}
		}
		public virtual string s_DoB1
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.DoB1.FieldName) ? string.Empty : base.GetIntegerAsString(EntryVisaSchema.DoB1.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.DoB1.FieldName);
			    else
			        this.DoB1 = base.SetIntegerAsString(EntryVisaSchema.DoB1.FieldName, value);
			}
		}
		public virtual string s_DoB2
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.DoB2.FieldName) ? string.Empty : base.GetIntegerAsString(EntryVisaSchema.DoB2.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.DoB2.FieldName);
			    else
			        this.DoB2 = base.SetIntegerAsString(EntryVisaSchema.DoB2.FieldName, value);
			}
		}
		public virtual string s_DoB3
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.DoB3.FieldName) ? string.Empty : base.GetIntegerAsString(EntryVisaSchema.DoB3.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.DoB3.FieldName);
			    else
			        this.DoB3 = base.SetIntegerAsString(EntryVisaSchema.DoB3.FieldName, value);
			}
		}
		public virtual string s_DoB4
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.DoB4.FieldName) ? string.Empty : base.GetIntegerAsString(EntryVisaSchema.DoB4.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.DoB4.FieldName);
			    else
			        this.DoB4 = base.SetIntegerAsString(EntryVisaSchema.DoB4.FieldName, value);
			}
		}
		public virtual string s_DoB5
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.DoB5.FieldName) ? string.Empty : base.GetIntegerAsString(EntryVisaSchema.DoB5.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.DoB5.FieldName);
			    else
			        this.DoB5 = base.SetIntegerAsString(EntryVisaSchema.DoB5.FieldName, value);
			}
		}
		public virtual string s_DoB6
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.DoB6.FieldName) ? string.Empty : base.GetIntegerAsString(EntryVisaSchema.DoB6.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.DoB6.FieldName);
			    else
			        this.DoB6 = base.SetIntegerAsString(EntryVisaSchema.DoB6.FieldName, value);
			}
		}
		public virtual string s_DoB7
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.DoB7.FieldName) ? string.Empty : base.GetIntegerAsString(EntryVisaSchema.DoB7.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.DoB7.FieldName);
			    else
			        this.DoB7 = base.SetIntegerAsString(EntryVisaSchema.DoB7.FieldName, value);
			}
		}
		public virtual string s_DoB8
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.DoB8.FieldName) ? string.Empty : base.GetIntegerAsString(EntryVisaSchema.DoB8.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.DoB8.FieldName);
			    else
			        this.DoB8 = base.SetIntegerAsString(EntryVisaSchema.DoB8.FieldName, value);
			}
		}
		public virtual string s_Nationality1
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.Nationality1.FieldName) ? string.Empty : base.GetStringAsString(EntryVisaSchema.Nationality1.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.Nationality1.FieldName);
			    else
			        this.Nationality1 = base.SetStringAsString(EntryVisaSchema.Nationality1.FieldName, value);
			}
		}
		public virtual string s_Nationality2
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.Nationality2.FieldName) ? string.Empty : base.GetStringAsString(EntryVisaSchema.Nationality2.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.Nationality2.FieldName);
			    else
			        this.Nationality2 = base.SetStringAsString(EntryVisaSchema.Nationality2.FieldName, value);
			}
		}
		public virtual string s_Nationality3
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.Nationality3.FieldName) ? string.Empty : base.GetStringAsString(EntryVisaSchema.Nationality3.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.Nationality3.FieldName);
			    else
			        this.Nationality3 = base.SetStringAsString(EntryVisaSchema.Nationality3.FieldName, value);
			}
		}
		public virtual string s_Nationality4
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.Nationality4.FieldName) ? string.Empty : base.GetStringAsString(EntryVisaSchema.Nationality4.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.Nationality4.FieldName);
			    else
			        this.Nationality4 = base.SetStringAsString(EntryVisaSchema.Nationality4.FieldName, value);
			}
		}
		public virtual string s_Nationality5
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.Nationality5.FieldName) ? string.Empty : base.GetStringAsString(EntryVisaSchema.Nationality5.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.Nationality5.FieldName);
			    else
			        this.Nationality5 = base.SetStringAsString(EntryVisaSchema.Nationality5.FieldName, value);
			}
		}
		public virtual string s_Nationality6
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.Nationality6.FieldName) ? string.Empty : base.GetStringAsString(EntryVisaSchema.Nationality6.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.Nationality6.FieldName);
			    else
			        this.Nationality6 = base.SetStringAsString(EntryVisaSchema.Nationality6.FieldName, value);
			}
		}
		public virtual string s_Nationality7
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.Nationality7.FieldName) ? string.Empty : base.GetStringAsString(EntryVisaSchema.Nationality7.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.Nationality7.FieldName);
			    else
			        this.Nationality7 = base.SetStringAsString(EntryVisaSchema.Nationality7.FieldName, value);
			}
		}
		public virtual string s_Nationality8
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.Nationality8.FieldName) ? string.Empty : base.GetStringAsString(EntryVisaSchema.Nationality8.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.Nationality8.FieldName);
			    else
			        this.Nationality8 = base.SetStringAsString(EntryVisaSchema.Nationality8.FieldName, value);
			}
		}
		public virtual string s_PassportNo1
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.PassportNo1.FieldName) ? string.Empty : base.GetStringAsString(EntryVisaSchema.PassportNo1.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.PassportNo1.FieldName);
			    else
			        this.PassportNo1 = base.SetStringAsString(EntryVisaSchema.PassportNo1.FieldName, value);
			}
		}
		public virtual string s_PassportNo2
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.PassportNo2.FieldName) ? string.Empty : base.GetStringAsString(EntryVisaSchema.PassportNo2.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.PassportNo2.FieldName);
			    else
			        this.PassportNo2 = base.SetStringAsString(EntryVisaSchema.PassportNo2.FieldName, value);
			}
		}
		public virtual string s_PassportNo3
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.PassportNo3.FieldName) ? string.Empty : base.GetStringAsString(EntryVisaSchema.PassportNo3.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.PassportNo3.FieldName);
			    else
			        this.PassportNo3 = base.SetStringAsString(EntryVisaSchema.PassportNo3.FieldName, value);
			}
		}
		public virtual string s_PassportNo4
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.PassportNo4.FieldName) ? string.Empty : base.GetStringAsString(EntryVisaSchema.PassportNo4.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.PassportNo4.FieldName);
			    else
			        this.PassportNo4 = base.SetStringAsString(EntryVisaSchema.PassportNo4.FieldName, value);
			}
		}
		public virtual string s_PassportNo5
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.PassportNo5.FieldName) ? string.Empty : base.GetStringAsString(EntryVisaSchema.PassportNo5.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.PassportNo5.FieldName);
			    else
			        this.PassportNo5 = base.SetStringAsString(EntryVisaSchema.PassportNo5.FieldName, value);
			}
		}
		public virtual string s_PassportNo6
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.PassportNo6.FieldName) ? string.Empty : base.GetStringAsString(EntryVisaSchema.PassportNo6.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.PassportNo6.FieldName);
			    else
			        this.PassportNo6 = base.SetStringAsString(EntryVisaSchema.PassportNo6.FieldName, value);
			}
		}
		public virtual string s_PassportNo7
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.PassportNo7.FieldName) ? string.Empty : base.GetStringAsString(EntryVisaSchema.PassportNo7.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.PassportNo7.FieldName);
			    else
			        this.PassportNo7 = base.SetStringAsString(EntryVisaSchema.PassportNo7.FieldName, value);
			}
		}
		public virtual string s_PassportNo8
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.PassportNo8.FieldName) ? string.Empty : base.GetStringAsString(EntryVisaSchema.PassportNo8.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.PassportNo8.FieldName);
			    else
			        this.PassportNo8 = base.SetStringAsString(EntryVisaSchema.PassportNo8.FieldName, value);
			}
		}
		public virtual string s_ExpiryDate1
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.ExpiryDate1.FieldName) ? string.Empty : base.GetIntegerAsString(EntryVisaSchema.ExpiryDate1.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.ExpiryDate1.FieldName);
			    else
			        this.ExpiryDate1 = base.SetIntegerAsString(EntryVisaSchema.ExpiryDate1.FieldName, value);
			}
		}
		public virtual string s_ExpiryDate2
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.ExpiryDate2.FieldName) ? string.Empty : base.GetIntegerAsString(EntryVisaSchema.ExpiryDate2.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.ExpiryDate2.FieldName);
			    else
			        this.ExpiryDate2 = base.SetIntegerAsString(EntryVisaSchema.ExpiryDate2.FieldName, value);
			}
		}
		public virtual string s_ExpiryDate3
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.ExpiryDate3.FieldName) ? string.Empty : base.GetIntegerAsString(EntryVisaSchema.ExpiryDate3.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.ExpiryDate3.FieldName);
			    else
			        this.ExpiryDate3 = base.SetIntegerAsString(EntryVisaSchema.ExpiryDate3.FieldName, value);
			}
		}
		public virtual string s_ExpiryDate4
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.ExpiryDate4.FieldName) ? string.Empty : base.GetIntegerAsString(EntryVisaSchema.ExpiryDate4.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.ExpiryDate4.FieldName);
			    else
			        this.ExpiryDate4 = base.SetIntegerAsString(EntryVisaSchema.ExpiryDate4.FieldName, value);
			}
		}
		public virtual string s_ExpiryDate5
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.ExpiryDate5.FieldName) ? string.Empty : base.GetIntegerAsString(EntryVisaSchema.ExpiryDate5.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.ExpiryDate5.FieldName);
			    else
			        this.ExpiryDate5 = base.SetIntegerAsString(EntryVisaSchema.ExpiryDate5.FieldName, value);
			}
		}
		public virtual string s_ExpiryDate6
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.ExpiryDate6.FieldName) ? string.Empty : base.GetIntegerAsString(EntryVisaSchema.ExpiryDate6.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.ExpiryDate6.FieldName);
			    else
			        this.ExpiryDate6 = base.SetIntegerAsString(EntryVisaSchema.ExpiryDate6.FieldName, value);
			}
		}
		public virtual string s_ExpiryDate7
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.ExpiryDate7.FieldName) ? string.Empty : base.GetIntegerAsString(EntryVisaSchema.ExpiryDate7.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.ExpiryDate7.FieldName);
			    else
			        this.ExpiryDate7 = base.SetIntegerAsString(EntryVisaSchema.ExpiryDate7.FieldName, value);
			}
		}
		public virtual string s_ExpiryDate8
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.ExpiryDate8.FieldName) ? string.Empty : base.GetIntegerAsString(EntryVisaSchema.ExpiryDate8.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.ExpiryDate8.FieldName);
			    else
			        this.ExpiryDate8 = base.SetIntegerAsString(EntryVisaSchema.ExpiryDate8.FieldName, value);
			}
		}
		public virtual string s_Status
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.Status.FieldName) ? string.Empty : base.GetIntegerAsString(EntryVisaSchema.Status.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.Status.FieldName);
			    else
			        this.Status = base.SetIntegerAsString(EntryVisaSchema.Status.FieldName, value);
			}
		}
		public virtual string s_BookingDate
		{
			get
			{
			    return this.IsColumnNull(EntryVisaSchema.BookingDate.FieldName) ? string.Empty : base.GetIntegerAsString(EntryVisaSchema.BookingDate.FieldName);
			}
			set
			{
			    if(string.Empty == value)
			        this.SetColumnNull(EntryVisaSchema.BookingDate.FieldName);
			    else
			        this.BookingDate = base.SetIntegerAsString(EntryVisaSchema.BookingDate.FieldName, value);
			}
		}
		#endregion		
	
		#region Where Clause
		public class WhereClause
		{
			public WhereClause(EasyObject entity)
			{
				this._entity = entity;
			}
			
			public TearOffWhereParameter TearOff
			{
				get
				{
					if(_tearOff == null)
					{
						_tearOff = new TearOffWhereParameter(this);
					}

					return _tearOff;
				}
			}

			#region TearOff's
			public class TearOffWhereParameter
			{
				public TearOffWhereParameter(WhereClause clause)
				{
					this._clause = clause;
				}
				
				
				public WhereParameter EntryVisaID
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.EntryVisaID);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter FullName
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.FullName);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter Email
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.Email);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter ConfirmEmail
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.ConfirmEmail);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter Tel
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.Tel);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter Fax
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.Fax);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter Address
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.Address);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter PortOfArrival
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.PortOfArrival);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter ArrivalDate
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.ArrivalDate);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter ExitDate
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.ExitDate);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter VisaPeriod
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.VisaPeriod);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter NumberOfEntry
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.NumberOfEntry);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter PurposeOfEntry
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.PurposeOfEntry);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter PaymentID
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.PaymentID);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter OtherRequest
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.OtherRequest);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter FullName1
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.FullName1);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter FullName2
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.FullName2);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter FullName3
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.FullName3);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter FullName4
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.FullName4);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter FullName5
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.FullName5);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter FullName6
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.FullName6);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter FullName7
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.FullName7);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter FullName8
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.FullName8);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter Gender1
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.Gender1);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter Gender2
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.Gender2);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter Gender3
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.Gender3);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter Gender4
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.Gender4);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter Gender5
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.Gender5);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter Gender6
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.Gender6);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter Gender7
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.Gender7);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter Gender8
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.Gender8);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter DoB1
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.DoB1);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter DoB2
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.DoB2);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter DoB3
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.DoB3);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter DoB4
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.DoB4);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter DoB5
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.DoB5);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter DoB6
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.DoB6);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter DoB7
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.DoB7);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter DoB8
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.DoB8);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter Nationality1
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.Nationality1);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter Nationality2
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.Nationality2);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter Nationality3
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.Nationality3);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter Nationality4
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.Nationality4);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter Nationality5
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.Nationality5);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter Nationality6
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.Nationality6);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter Nationality7
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.Nationality7);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter Nationality8
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.Nationality8);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter PassportNo1
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.PassportNo1);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter PassportNo2
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.PassportNo2);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter PassportNo3
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.PassportNo3);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter PassportNo4
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.PassportNo4);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter PassportNo5
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.PassportNo5);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter PassportNo6
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.PassportNo6);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter PassportNo7
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.PassportNo7);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter PassportNo8
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.PassportNo8);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter ExpiryDate1
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.ExpiryDate1);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter ExpiryDate2
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.ExpiryDate2);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter ExpiryDate3
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.ExpiryDate3);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter ExpiryDate4
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.ExpiryDate4);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter ExpiryDate5
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.ExpiryDate5);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter ExpiryDate6
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.ExpiryDate6);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter ExpiryDate7
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.ExpiryDate7);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter ExpiryDate8
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.ExpiryDate8);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter Status
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.Status);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}

				public WhereParameter BookingDate
				{
					get
					{
							WhereParameter wp = new WhereParameter(EntryVisaSchema.BookingDate);
							this._clause._entity.Query.AddWhereParameter(wp);
							return wp;
					}
				}


				private WhereClause _clause;
			}
			#endregion
		
			public WhereParameter EntryVisaID
		    {
				get
		        {
					if(_EntryVisaID_W == null)
	        	    {
						_EntryVisaID_W = TearOff.EntryVisaID;
					}
					return _EntryVisaID_W;
				}
			}

			public WhereParameter FullName
		    {
				get
		        {
					if(_FullName_W == null)
	        	    {
						_FullName_W = TearOff.FullName;
					}
					return _FullName_W;
				}
			}

			public WhereParameter Email
		    {
				get
		        {
					if(_Email_W == null)
	        	    {
						_Email_W = TearOff.Email;
					}
					return _Email_W;
				}
			}

			public WhereParameter ConfirmEmail
		    {
				get
		        {
					if(_ConfirmEmail_W == null)
	        	    {
						_ConfirmEmail_W = TearOff.ConfirmEmail;
					}
					return _ConfirmEmail_W;
				}
			}

			public WhereParameter Tel
		    {
				get
		        {
					if(_Tel_W == null)
	        	    {
						_Tel_W = TearOff.Tel;
					}
					return _Tel_W;
				}
			}

			public WhereParameter Fax
		    {
				get
		        {
					if(_Fax_W == null)
	        	    {
						_Fax_W = TearOff.Fax;
					}
					return _Fax_W;
				}
			}

			public WhereParameter Address
		    {
				get
		        {
					if(_Address_W == null)
	        	    {
						_Address_W = TearOff.Address;
					}
					return _Address_W;
				}
			}

			public WhereParameter PortOfArrival
		    {
				get
		        {
					if(_PortOfArrival_W == null)
	        	    {
						_PortOfArrival_W = TearOff.PortOfArrival;
					}
					return _PortOfArrival_W;
				}
			}

			public WhereParameter ArrivalDate
		    {
				get
		        {
					if(_ArrivalDate_W == null)
	        	    {
						_ArrivalDate_W = TearOff.ArrivalDate;
					}
					return _ArrivalDate_W;
				}
			}

			public WhereParameter ExitDate
		    {
				get
		        {
					if(_ExitDate_W == null)
	        	    {
						_ExitDate_W = TearOff.ExitDate;
					}
					return _ExitDate_W;
				}
			}

			public WhereParameter VisaPeriod
		    {
				get
		        {
					if(_VisaPeriod_W == null)
	        	    {
						_VisaPeriod_W = TearOff.VisaPeriod;
					}
					return _VisaPeriod_W;
				}
			}

			public WhereParameter NumberOfEntry
		    {
				get
		        {
					if(_NumberOfEntry_W == null)
	        	    {
						_NumberOfEntry_W = TearOff.NumberOfEntry;
					}
					return _NumberOfEntry_W;
				}
			}

			public WhereParameter PurposeOfEntry
		    {
				get
		        {
					if(_PurposeOfEntry_W == null)
	        	    {
						_PurposeOfEntry_W = TearOff.PurposeOfEntry;
					}
					return _PurposeOfEntry_W;
				}
			}

			public WhereParameter PaymentID
		    {
				get
		        {
					if(_PaymentID_W == null)
	        	    {
						_PaymentID_W = TearOff.PaymentID;
					}
					return _PaymentID_W;
				}
			}

			public WhereParameter OtherRequest
		    {
				get
		        {
					if(_OtherRequest_W == null)
	        	    {
						_OtherRequest_W = TearOff.OtherRequest;
					}
					return _OtherRequest_W;
				}
			}

			public WhereParameter FullName1
		    {
				get
		        {
					if(_FullName1_W == null)
	        	    {
						_FullName1_W = TearOff.FullName1;
					}
					return _FullName1_W;
				}
			}

			public WhereParameter FullName2
		    {
				get
		        {
					if(_FullName2_W == null)
	        	    {
						_FullName2_W = TearOff.FullName2;
					}
					return _FullName2_W;
				}
			}

			public WhereParameter FullName3
		    {
				get
		        {
					if(_FullName3_W == null)
	        	    {
						_FullName3_W = TearOff.FullName3;
					}
					return _FullName3_W;
				}
			}

			public WhereParameter FullName4
		    {
				get
		        {
					if(_FullName4_W == null)
	        	    {
						_FullName4_W = TearOff.FullName4;
					}
					return _FullName4_W;
				}
			}

			public WhereParameter FullName5
		    {
				get
		        {
					if(_FullName5_W == null)
	        	    {
						_FullName5_W = TearOff.FullName5;
					}
					return _FullName5_W;
				}
			}

			public WhereParameter FullName6
		    {
				get
		        {
					if(_FullName6_W == null)
	        	    {
						_FullName6_W = TearOff.FullName6;
					}
					return _FullName6_W;
				}
			}

			public WhereParameter FullName7
		    {
				get
		        {
					if(_FullName7_W == null)
	        	    {
						_FullName7_W = TearOff.FullName7;
					}
					return _FullName7_W;
				}
			}

			public WhereParameter FullName8
		    {
				get
		        {
					if(_FullName8_W == null)
	        	    {
						_FullName8_W = TearOff.FullName8;
					}
					return _FullName8_W;
				}
			}

			public WhereParameter Gender1
		    {
				get
		        {
					if(_Gender1_W == null)
	        	    {
						_Gender1_W = TearOff.Gender1;
					}
					return _Gender1_W;
				}
			}

			public WhereParameter Gender2
		    {
				get
		        {
					if(_Gender2_W == null)
	        	    {
						_Gender2_W = TearOff.Gender2;
					}
					return _Gender2_W;
				}
			}

			public WhereParameter Gender3
		    {
				get
		        {
					if(_Gender3_W == null)
	        	    {
						_Gender3_W = TearOff.Gender3;
					}
					return _Gender3_W;
				}
			}

			public WhereParameter Gender4
		    {
				get
		        {
					if(_Gender4_W == null)
	        	    {
						_Gender4_W = TearOff.Gender4;
					}
					return _Gender4_W;
				}
			}

			public WhereParameter Gender5
		    {
				get
		        {
					if(_Gender5_W == null)
	        	    {
						_Gender5_W = TearOff.Gender5;
					}
					return _Gender5_W;
				}
			}

			public WhereParameter Gender6
		    {
				get
		        {
					if(_Gender6_W == null)
	        	    {
						_Gender6_W = TearOff.Gender6;
					}
					return _Gender6_W;
				}
			}

			public WhereParameter Gender7
		    {
				get
		        {
					if(_Gender7_W == null)
	        	    {
						_Gender7_W = TearOff.Gender7;
					}
					return _Gender7_W;
				}
			}

			public WhereParameter Gender8
		    {
				get
		        {
					if(_Gender8_W == null)
	        	    {
						_Gender8_W = TearOff.Gender8;
					}
					return _Gender8_W;
				}
			}

			public WhereParameter DoB1
		    {
				get
		        {
					if(_DoB1_W == null)
	        	    {
						_DoB1_W = TearOff.DoB1;
					}
					return _DoB1_W;
				}
			}

			public WhereParameter DoB2
		    {
				get
		        {
					if(_DoB2_W == null)
	        	    {
						_DoB2_W = TearOff.DoB2;
					}
					return _DoB2_W;
				}
			}

			public WhereParameter DoB3
		    {
				get
		        {
					if(_DoB3_W == null)
	        	    {
						_DoB3_W = TearOff.DoB3;
					}
					return _DoB3_W;
				}
			}

			public WhereParameter DoB4
		    {
				get
		        {
					if(_DoB4_W == null)
	        	    {
						_DoB4_W = TearOff.DoB4;
					}
					return _DoB4_W;
				}
			}

			public WhereParameter DoB5
		    {
				get
		        {
					if(_DoB5_W == null)
	        	    {
						_DoB5_W = TearOff.DoB5;
					}
					return _DoB5_W;
				}
			}

			public WhereParameter DoB6
		    {
				get
		        {
					if(_DoB6_W == null)
	        	    {
						_DoB6_W = TearOff.DoB6;
					}
					return _DoB6_W;
				}
			}

			public WhereParameter DoB7
		    {
				get
		        {
					if(_DoB7_W == null)
	        	    {
						_DoB7_W = TearOff.DoB7;
					}
					return _DoB7_W;
				}
			}

			public WhereParameter DoB8
		    {
				get
		        {
					if(_DoB8_W == null)
	        	    {
						_DoB8_W = TearOff.DoB8;
					}
					return _DoB8_W;
				}
			}

			public WhereParameter Nationality1
		    {
				get
		        {
					if(_Nationality1_W == null)
	        	    {
						_Nationality1_W = TearOff.Nationality1;
					}
					return _Nationality1_W;
				}
			}

			public WhereParameter Nationality2
		    {
				get
		        {
					if(_Nationality2_W == null)
	        	    {
						_Nationality2_W = TearOff.Nationality2;
					}
					return _Nationality2_W;
				}
			}

			public WhereParameter Nationality3
		    {
				get
		        {
					if(_Nationality3_W == null)
	        	    {
						_Nationality3_W = TearOff.Nationality3;
					}
					return _Nationality3_W;
				}
			}

			public WhereParameter Nationality4
		    {
				get
		        {
					if(_Nationality4_W == null)
	        	    {
						_Nationality4_W = TearOff.Nationality4;
					}
					return _Nationality4_W;
				}
			}

			public WhereParameter Nationality5
		    {
				get
		        {
					if(_Nationality5_W == null)
	        	    {
						_Nationality5_W = TearOff.Nationality5;
					}
					return _Nationality5_W;
				}
			}

			public WhereParameter Nationality6
		    {
				get
		        {
					if(_Nationality6_W == null)
	        	    {
						_Nationality6_W = TearOff.Nationality6;
					}
					return _Nationality6_W;
				}
			}

			public WhereParameter Nationality7
		    {
				get
		        {
					if(_Nationality7_W == null)
	        	    {
						_Nationality7_W = TearOff.Nationality7;
					}
					return _Nationality7_W;
				}
			}

			public WhereParameter Nationality8
		    {
				get
		        {
					if(_Nationality8_W == null)
	        	    {
						_Nationality8_W = TearOff.Nationality8;
					}
					return _Nationality8_W;
				}
			}

			public WhereParameter PassportNo1
		    {
				get
		        {
					if(_PassportNo1_W == null)
	        	    {
						_PassportNo1_W = TearOff.PassportNo1;
					}
					return _PassportNo1_W;
				}
			}

			public WhereParameter PassportNo2
		    {
				get
		        {
					if(_PassportNo2_W == null)
	        	    {
						_PassportNo2_W = TearOff.PassportNo2;
					}
					return _PassportNo2_W;
				}
			}

			public WhereParameter PassportNo3
		    {
				get
		        {
					if(_PassportNo3_W == null)
	        	    {
						_PassportNo3_W = TearOff.PassportNo3;
					}
					return _PassportNo3_W;
				}
			}

			public WhereParameter PassportNo4
		    {
				get
		        {
					if(_PassportNo4_W == null)
	        	    {
						_PassportNo4_W = TearOff.PassportNo4;
					}
					return _PassportNo4_W;
				}
			}

			public WhereParameter PassportNo5
		    {
				get
		        {
					if(_PassportNo5_W == null)
	        	    {
						_PassportNo5_W = TearOff.PassportNo5;
					}
					return _PassportNo5_W;
				}
			}

			public WhereParameter PassportNo6
		    {
				get
		        {
					if(_PassportNo6_W == null)
	        	    {
						_PassportNo6_W = TearOff.PassportNo6;
					}
					return _PassportNo6_W;
				}
			}

			public WhereParameter PassportNo7
		    {
				get
		        {
					if(_PassportNo7_W == null)
	        	    {
						_PassportNo7_W = TearOff.PassportNo7;
					}
					return _PassportNo7_W;
				}
			}

			public WhereParameter PassportNo8
		    {
				get
		        {
					if(_PassportNo8_W == null)
	        	    {
						_PassportNo8_W = TearOff.PassportNo8;
					}
					return _PassportNo8_W;
				}
			}

			public WhereParameter ExpiryDate1
		    {
				get
		        {
					if(_ExpiryDate1_W == null)
	        	    {
						_ExpiryDate1_W = TearOff.ExpiryDate1;
					}
					return _ExpiryDate1_W;
				}
			}

			public WhereParameter ExpiryDate2
		    {
				get
		        {
					if(_ExpiryDate2_W == null)
	        	    {
						_ExpiryDate2_W = TearOff.ExpiryDate2;
					}
					return _ExpiryDate2_W;
				}
			}

			public WhereParameter ExpiryDate3
		    {
				get
		        {
					if(_ExpiryDate3_W == null)
	        	    {
						_ExpiryDate3_W = TearOff.ExpiryDate3;
					}
					return _ExpiryDate3_W;
				}
			}

			public WhereParameter ExpiryDate4
		    {
				get
		        {
					if(_ExpiryDate4_W == null)
	        	    {
						_ExpiryDate4_W = TearOff.ExpiryDate4;
					}
					return _ExpiryDate4_W;
				}
			}

			public WhereParameter ExpiryDate5
		    {
				get
		        {
					if(_ExpiryDate5_W == null)
	        	    {
						_ExpiryDate5_W = TearOff.ExpiryDate5;
					}
					return _ExpiryDate5_W;
				}
			}

			public WhereParameter ExpiryDate6
		    {
				get
		        {
					if(_ExpiryDate6_W == null)
	        	    {
						_ExpiryDate6_W = TearOff.ExpiryDate6;
					}
					return _ExpiryDate6_W;
				}
			}

			public WhereParameter ExpiryDate7
		    {
				get
		        {
					if(_ExpiryDate7_W == null)
	        	    {
						_ExpiryDate7_W = TearOff.ExpiryDate7;
					}
					return _ExpiryDate7_W;
				}
			}

			public WhereParameter ExpiryDate8
		    {
				get
		        {
					if(_ExpiryDate8_W == null)
	        	    {
						_ExpiryDate8_W = TearOff.ExpiryDate8;
					}
					return _ExpiryDate8_W;
				}
			}

			public WhereParameter Status
		    {
				get
		        {
					if(_Status_W == null)
	        	    {
						_Status_W = TearOff.Status;
					}
					return _Status_W;
				}
			}

			public WhereParameter BookingDate
		    {
				get
		        {
					if(_BookingDate_W == null)
	        	    {
						_BookingDate_W = TearOff.BookingDate;
					}
					return _BookingDate_W;
				}
			}

			private WhereParameter _EntryVisaID_W = null;
			private WhereParameter _FullName_W = null;
			private WhereParameter _Email_W = null;
			private WhereParameter _ConfirmEmail_W = null;
			private WhereParameter _Tel_W = null;
			private WhereParameter _Fax_W = null;
			private WhereParameter _Address_W = null;
			private WhereParameter _PortOfArrival_W = null;
			private WhereParameter _ArrivalDate_W = null;
			private WhereParameter _ExitDate_W = null;
			private WhereParameter _VisaPeriod_W = null;
			private WhereParameter _NumberOfEntry_W = null;
			private WhereParameter _PurposeOfEntry_W = null;
			private WhereParameter _PaymentID_W = null;
			private WhereParameter _OtherRequest_W = null;
			private WhereParameter _FullName1_W = null;
			private WhereParameter _FullName2_W = null;
			private WhereParameter _FullName3_W = null;
			private WhereParameter _FullName4_W = null;
			private WhereParameter _FullName5_W = null;
			private WhereParameter _FullName6_W = null;
			private WhereParameter _FullName7_W = null;
			private WhereParameter _FullName8_W = null;
			private WhereParameter _Gender1_W = null;
			private WhereParameter _Gender2_W = null;
			private WhereParameter _Gender3_W = null;
			private WhereParameter _Gender4_W = null;
			private WhereParameter _Gender5_W = null;
			private WhereParameter _Gender6_W = null;
			private WhereParameter _Gender7_W = null;
			private WhereParameter _Gender8_W = null;
			private WhereParameter _DoB1_W = null;
			private WhereParameter _DoB2_W = null;
			private WhereParameter _DoB3_W = null;
			private WhereParameter _DoB4_W = null;
			private WhereParameter _DoB5_W = null;
			private WhereParameter _DoB6_W = null;
			private WhereParameter _DoB7_W = null;
			private WhereParameter _DoB8_W = null;
			private WhereParameter _Nationality1_W = null;
			private WhereParameter _Nationality2_W = null;
			private WhereParameter _Nationality3_W = null;
			private WhereParameter _Nationality4_W = null;
			private WhereParameter _Nationality5_W = null;
			private WhereParameter _Nationality6_W = null;
			private WhereParameter _Nationality7_W = null;
			private WhereParameter _Nationality8_W = null;
			private WhereParameter _PassportNo1_W = null;
			private WhereParameter _PassportNo2_W = null;
			private WhereParameter _PassportNo3_W = null;
			private WhereParameter _PassportNo4_W = null;
			private WhereParameter _PassportNo5_W = null;
			private WhereParameter _PassportNo6_W = null;
			private WhereParameter _PassportNo7_W = null;
			private WhereParameter _PassportNo8_W = null;
			private WhereParameter _ExpiryDate1_W = null;
			private WhereParameter _ExpiryDate2_W = null;
			private WhereParameter _ExpiryDate3_W = null;
			private WhereParameter _ExpiryDate4_W = null;
			private WhereParameter _ExpiryDate5_W = null;
			private WhereParameter _ExpiryDate6_W = null;
			private WhereParameter _ExpiryDate7_W = null;
			private WhereParameter _ExpiryDate8_W = null;
			private WhereParameter _Status_W = null;
			private WhereParameter _BookingDate_W = null;

			public void WhereClauseReset()
			{
				_EntryVisaID_W = null;
				_FullName_W = null;
				_Email_W = null;
				_ConfirmEmail_W = null;
				_Tel_W = null;
				_Fax_W = null;
				_Address_W = null;
				_PortOfArrival_W = null;
				_ArrivalDate_W = null;
				_ExitDate_W = null;
				_VisaPeriod_W = null;
				_NumberOfEntry_W = null;
				_PurposeOfEntry_W = null;
				_PaymentID_W = null;
				_OtherRequest_W = null;
				_FullName1_W = null;
				_FullName2_W = null;
				_FullName3_W = null;
				_FullName4_W = null;
				_FullName5_W = null;
				_FullName6_W = null;
				_FullName7_W = null;
				_FullName8_W = null;
				_Gender1_W = null;
				_Gender2_W = null;
				_Gender3_W = null;
				_Gender4_W = null;
				_Gender5_W = null;
				_Gender6_W = null;
				_Gender7_W = null;
				_Gender8_W = null;
				_DoB1_W = null;
				_DoB2_W = null;
				_DoB3_W = null;
				_DoB4_W = null;
				_DoB5_W = null;
				_DoB6_W = null;
				_DoB7_W = null;
				_DoB8_W = null;
				_Nationality1_W = null;
				_Nationality2_W = null;
				_Nationality3_W = null;
				_Nationality4_W = null;
				_Nationality5_W = null;
				_Nationality6_W = null;
				_Nationality7_W = null;
				_Nationality8_W = null;
				_PassportNo1_W = null;
				_PassportNo2_W = null;
				_PassportNo3_W = null;
				_PassportNo4_W = null;
				_PassportNo5_W = null;
				_PassportNo6_W = null;
				_PassportNo7_W = null;
				_PassportNo8_W = null;
				_ExpiryDate1_W = null;
				_ExpiryDate2_W = null;
				_ExpiryDate3_W = null;
				_ExpiryDate4_W = null;
				_ExpiryDate5_W = null;
				_ExpiryDate6_W = null;
				_ExpiryDate7_W = null;
				_ExpiryDate8_W = null;
				_Status_W = null;
				_BookingDate_W = null;

				this._entity.Query.FlushWhereParameters();

			}
	
			private EasyObject _entity;
			private TearOffWhereParameter _tearOff;
			
		}
	
		public WhereClause Where
		{
			get
			{
				if(_whereClause == null)
				{
					_whereClause = new WhereClause(this);
				}
		
				return _whereClause;
			}
		}
		
		private WhereClause _whereClause = null;	
		#endregion
		
		#region Aggregate Clause
		public class AggregateClause
		{
			public AggregateClause(EasyObject entity)
			{
				this._entity = entity;
			}
			
			public TearOffAggregateParameter TearOff
			{
				get
				{
					if(_tearOff == null)
					{
						_tearOff = new TearOffAggregateParameter(this);
					}

					return _tearOff;
				}
			}

			#region TearOff's
			public class TearOffAggregateParameter
			{
				public TearOffAggregateParameter(AggregateClause clause)
				{
					this._clause = clause;
				}
				
				
				public AggregateParameter EntryVisaID
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.EntryVisaID);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter FullName
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.FullName);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter Email
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.Email);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter ConfirmEmail
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.ConfirmEmail);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter Tel
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.Tel);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter Fax
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.Fax);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter Address
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.Address);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter PortOfArrival
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.PortOfArrival);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter ArrivalDate
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.ArrivalDate);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter ExitDate
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.ExitDate);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter VisaPeriod
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.VisaPeriod);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter NumberOfEntry
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.NumberOfEntry);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter PurposeOfEntry
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.PurposeOfEntry);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter PaymentID
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.PaymentID);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter OtherRequest
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.OtherRequest);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter FullName1
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.FullName1);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter FullName2
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.FullName2);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter FullName3
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.FullName3);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter FullName4
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.FullName4);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter FullName5
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.FullName5);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter FullName6
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.FullName6);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter FullName7
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.FullName7);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter FullName8
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.FullName8);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter Gender1
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.Gender1);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter Gender2
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.Gender2);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter Gender3
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.Gender3);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter Gender4
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.Gender4);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter Gender5
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.Gender5);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter Gender6
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.Gender6);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter Gender7
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.Gender7);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter Gender8
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.Gender8);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter DoB1
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.DoB1);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter DoB2
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.DoB2);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter DoB3
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.DoB3);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter DoB4
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.DoB4);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter DoB5
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.DoB5);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter DoB6
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.DoB6);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter DoB7
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.DoB7);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter DoB8
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.DoB8);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter Nationality1
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.Nationality1);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter Nationality2
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.Nationality2);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter Nationality3
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.Nationality3);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter Nationality4
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.Nationality4);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter Nationality5
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.Nationality5);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter Nationality6
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.Nationality6);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter Nationality7
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.Nationality7);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter Nationality8
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.Nationality8);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter PassportNo1
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.PassportNo1);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter PassportNo2
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.PassportNo2);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter PassportNo3
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.PassportNo3);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter PassportNo4
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.PassportNo4);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter PassportNo5
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.PassportNo5);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter PassportNo6
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.PassportNo6);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter PassportNo7
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.PassportNo7);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter PassportNo8
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.PassportNo8);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter ExpiryDate1
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.ExpiryDate1);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter ExpiryDate2
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.ExpiryDate2);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter ExpiryDate3
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.ExpiryDate3);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter ExpiryDate4
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.ExpiryDate4);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter ExpiryDate5
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.ExpiryDate5);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter ExpiryDate6
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.ExpiryDate6);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter ExpiryDate7
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.ExpiryDate7);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter ExpiryDate8
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.ExpiryDate8);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter Status
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.Status);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}

				public AggregateParameter BookingDate
				{
					get
					{
							AggregateParameter ap = new AggregateParameter(EntryVisaSchema.BookingDate);
							this._clause._entity.Query.AddAggregateParameter(ap);
							return ap;
					}
				}


				private AggregateClause _clause;
			}
			#endregion
		
			public AggregateParameter EntryVisaID
		    {
				get
		        {
					if(_EntryVisaID_W == null)
	        	    {
						_EntryVisaID_W = TearOff.EntryVisaID;
					}
					return _EntryVisaID_W;
				}
			}

			public AggregateParameter FullName
		    {
				get
		        {
					if(_FullName_W == null)
	        	    {
						_FullName_W = TearOff.FullName;
					}
					return _FullName_W;
				}
			}

			public AggregateParameter Email
		    {
				get
		        {
					if(_Email_W == null)
	        	    {
						_Email_W = TearOff.Email;
					}
					return _Email_W;
				}
			}

			public AggregateParameter ConfirmEmail
		    {
				get
		        {
					if(_ConfirmEmail_W == null)
	        	    {
						_ConfirmEmail_W = TearOff.ConfirmEmail;
					}
					return _ConfirmEmail_W;
				}
			}

			public AggregateParameter Tel
		    {
				get
		        {
					if(_Tel_W == null)
	        	    {
						_Tel_W = TearOff.Tel;
					}
					return _Tel_W;
				}
			}

			public AggregateParameter Fax
		    {
				get
		        {
					if(_Fax_W == null)
	        	    {
						_Fax_W = TearOff.Fax;
					}
					return _Fax_W;
				}
			}

			public AggregateParameter Address
		    {
				get
		        {
					if(_Address_W == null)
	        	    {
						_Address_W = TearOff.Address;
					}
					return _Address_W;
				}
			}

			public AggregateParameter PortOfArrival
		    {
				get
		        {
					if(_PortOfArrival_W == null)
	        	    {
						_PortOfArrival_W = TearOff.PortOfArrival;
					}
					return _PortOfArrival_W;
				}
			}

			public AggregateParameter ArrivalDate
		    {
				get
		        {
					if(_ArrivalDate_W == null)
	        	    {
						_ArrivalDate_W = TearOff.ArrivalDate;
					}
					return _ArrivalDate_W;
				}
			}

			public AggregateParameter ExitDate
		    {
				get
		        {
					if(_ExitDate_W == null)
	        	    {
						_ExitDate_W = TearOff.ExitDate;
					}
					return _ExitDate_W;
				}
			}

			public AggregateParameter VisaPeriod
		    {
				get
		        {
					if(_VisaPeriod_W == null)
	        	    {
						_VisaPeriod_W = TearOff.VisaPeriod;
					}
					return _VisaPeriod_W;
				}
			}

			public AggregateParameter NumberOfEntry
		    {
				get
		        {
					if(_NumberOfEntry_W == null)
	        	    {
						_NumberOfEntry_W = TearOff.NumberOfEntry;
					}
					return _NumberOfEntry_W;
				}
			}

			public AggregateParameter PurposeOfEntry
		    {
				get
		        {
					if(_PurposeOfEntry_W == null)
	        	    {
						_PurposeOfEntry_W = TearOff.PurposeOfEntry;
					}
					return _PurposeOfEntry_W;
				}
			}

			public AggregateParameter PaymentID
		    {
				get
		        {
					if(_PaymentID_W == null)
	        	    {
						_PaymentID_W = TearOff.PaymentID;
					}
					return _PaymentID_W;
				}
			}

			public AggregateParameter OtherRequest
		    {
				get
		        {
					if(_OtherRequest_W == null)
	        	    {
						_OtherRequest_W = TearOff.OtherRequest;
					}
					return _OtherRequest_W;
				}
			}

			public AggregateParameter FullName1
		    {
				get
		        {
					if(_FullName1_W == null)
	        	    {
						_FullName1_W = TearOff.FullName1;
					}
					return _FullName1_W;
				}
			}

			public AggregateParameter FullName2
		    {
				get
		        {
					if(_FullName2_W == null)
	        	    {
						_FullName2_W = TearOff.FullName2;
					}
					return _FullName2_W;
				}
			}

			public AggregateParameter FullName3
		    {
				get
		        {
					if(_FullName3_W == null)
	        	    {
						_FullName3_W = TearOff.FullName3;
					}
					return _FullName3_W;
				}
			}

			public AggregateParameter FullName4
		    {
				get
		        {
					if(_FullName4_W == null)
	        	    {
						_FullName4_W = TearOff.FullName4;
					}
					return _FullName4_W;
				}
			}

			public AggregateParameter FullName5
		    {
				get
		        {
					if(_FullName5_W == null)
	        	    {
						_FullName5_W = TearOff.FullName5;
					}
					return _FullName5_W;
				}
			}

			public AggregateParameter FullName6
		    {
				get
		        {
					if(_FullName6_W == null)
	        	    {
						_FullName6_W = TearOff.FullName6;
					}
					return _FullName6_W;
				}
			}

			public AggregateParameter FullName7
		    {
				get
		        {
					if(_FullName7_W == null)
	        	    {
						_FullName7_W = TearOff.FullName7;
					}
					return _FullName7_W;
				}
			}

			public AggregateParameter FullName8
		    {
				get
		        {
					if(_FullName8_W == null)
	        	    {
						_FullName8_W = TearOff.FullName8;
					}
					return _FullName8_W;
				}
			}

			public AggregateParameter Gender1
		    {
				get
		        {
					if(_Gender1_W == null)
	        	    {
						_Gender1_W = TearOff.Gender1;
					}
					return _Gender1_W;
				}
			}

			public AggregateParameter Gender2
		    {
				get
		        {
					if(_Gender2_W == null)
	        	    {
						_Gender2_W = TearOff.Gender2;
					}
					return _Gender2_W;
				}
			}

			public AggregateParameter Gender3
		    {
				get
		        {
					if(_Gender3_W == null)
	        	    {
						_Gender3_W = TearOff.Gender3;
					}
					return _Gender3_W;
				}
			}

			public AggregateParameter Gender4
		    {
				get
		        {
					if(_Gender4_W == null)
	        	    {
						_Gender4_W = TearOff.Gender4;
					}
					return _Gender4_W;
				}
			}

			public AggregateParameter Gender5
		    {
				get
		        {
					if(_Gender5_W == null)
	        	    {
						_Gender5_W = TearOff.Gender5;
					}
					return _Gender5_W;
				}
			}

			public AggregateParameter Gender6
		    {
				get
		        {
					if(_Gender6_W == null)
	        	    {
						_Gender6_W = TearOff.Gender6;
					}
					return _Gender6_W;
				}
			}

			public AggregateParameter Gender7
		    {
				get
		        {
					if(_Gender7_W == null)
	        	    {
						_Gender7_W = TearOff.Gender7;
					}
					return _Gender7_W;
				}
			}

			public AggregateParameter Gender8
		    {
				get
		        {
					if(_Gender8_W == null)
	        	    {
						_Gender8_W = TearOff.Gender8;
					}
					return _Gender8_W;
				}
			}

			public AggregateParameter DoB1
		    {
				get
		        {
					if(_DoB1_W == null)
	        	    {
						_DoB1_W = TearOff.DoB1;
					}
					return _DoB1_W;
				}
			}

			public AggregateParameter DoB2
		    {
				get
		        {
					if(_DoB2_W == null)
	        	    {
						_DoB2_W = TearOff.DoB2;
					}
					return _DoB2_W;
				}
			}

			public AggregateParameter DoB3
		    {
				get
		        {
					if(_DoB3_W == null)
	        	    {
						_DoB3_W = TearOff.DoB3;
					}
					return _DoB3_W;
				}
			}

			public AggregateParameter DoB4
		    {
				get
		        {
					if(_DoB4_W == null)
	        	    {
						_DoB4_W = TearOff.DoB4;
					}
					return _DoB4_W;
				}
			}

			public AggregateParameter DoB5
		    {
				get
		        {
					if(_DoB5_W == null)
	        	    {
						_DoB5_W = TearOff.DoB5;
					}
					return _DoB5_W;
				}
			}

			public AggregateParameter DoB6
		    {
				get
		        {
					if(_DoB6_W == null)
	        	    {
						_DoB6_W = TearOff.DoB6;
					}
					return _DoB6_W;
				}
			}

			public AggregateParameter DoB7
		    {
				get
		        {
					if(_DoB7_W == null)
	        	    {
						_DoB7_W = TearOff.DoB7;
					}
					return _DoB7_W;
				}
			}

			public AggregateParameter DoB8
		    {
				get
		        {
					if(_DoB8_W == null)
	        	    {
						_DoB8_W = TearOff.DoB8;
					}
					return _DoB8_W;
				}
			}

			public AggregateParameter Nationality1
		    {
				get
		        {
					if(_Nationality1_W == null)
	        	    {
						_Nationality1_W = TearOff.Nationality1;
					}
					return _Nationality1_W;
				}
			}

			public AggregateParameter Nationality2
		    {
				get
		        {
					if(_Nationality2_W == null)
	        	    {
						_Nationality2_W = TearOff.Nationality2;
					}
					return _Nationality2_W;
				}
			}

			public AggregateParameter Nationality3
		    {
				get
		        {
					if(_Nationality3_W == null)
	        	    {
						_Nationality3_W = TearOff.Nationality3;
					}
					return _Nationality3_W;
				}
			}

			public AggregateParameter Nationality4
		    {
				get
		        {
					if(_Nationality4_W == null)
	        	    {
						_Nationality4_W = TearOff.Nationality4;
					}
					return _Nationality4_W;
				}
			}

			public AggregateParameter Nationality5
		    {
				get
		        {
					if(_Nationality5_W == null)
	        	    {
						_Nationality5_W = TearOff.Nationality5;
					}
					return _Nationality5_W;
				}
			}

			public AggregateParameter Nationality6
		    {
				get
		        {
					if(_Nationality6_W == null)
	        	    {
						_Nationality6_W = TearOff.Nationality6;
					}
					return _Nationality6_W;
				}
			}

			public AggregateParameter Nationality7
		    {
				get
		        {
					if(_Nationality7_W == null)
	        	    {
						_Nationality7_W = TearOff.Nationality7;
					}
					return _Nationality7_W;
				}
			}

			public AggregateParameter Nationality8
		    {
				get
		        {
					if(_Nationality8_W == null)
	        	    {
						_Nationality8_W = TearOff.Nationality8;
					}
					return _Nationality8_W;
				}
			}

			public AggregateParameter PassportNo1
		    {
				get
		        {
					if(_PassportNo1_W == null)
	        	    {
						_PassportNo1_W = TearOff.PassportNo1;
					}
					return _PassportNo1_W;
				}
			}

			public AggregateParameter PassportNo2
		    {
				get
		        {
					if(_PassportNo2_W == null)
	        	    {
						_PassportNo2_W = TearOff.PassportNo2;
					}
					return _PassportNo2_W;
				}
			}

			public AggregateParameter PassportNo3
		    {
				get
		        {
					if(_PassportNo3_W == null)
	        	    {
						_PassportNo3_W = TearOff.PassportNo3;
					}
					return _PassportNo3_W;
				}
			}

			public AggregateParameter PassportNo4
		    {
				get
		        {
					if(_PassportNo4_W == null)
	        	    {
						_PassportNo4_W = TearOff.PassportNo4;
					}
					return _PassportNo4_W;
				}
			}

			public AggregateParameter PassportNo5
		    {
				get
		        {
					if(_PassportNo5_W == null)
	        	    {
						_PassportNo5_W = TearOff.PassportNo5;
					}
					return _PassportNo5_W;
				}
			}

			public AggregateParameter PassportNo6
		    {
				get
		        {
					if(_PassportNo6_W == null)
	        	    {
						_PassportNo6_W = TearOff.PassportNo6;
					}
					return _PassportNo6_W;
				}
			}

			public AggregateParameter PassportNo7
		    {
				get
		        {
					if(_PassportNo7_W == null)
	        	    {
						_PassportNo7_W = TearOff.PassportNo7;
					}
					return _PassportNo7_W;
				}
			}

			public AggregateParameter PassportNo8
		    {
				get
		        {
					if(_PassportNo8_W == null)
	        	    {
						_PassportNo8_W = TearOff.PassportNo8;
					}
					return _PassportNo8_W;
				}
			}

			public AggregateParameter ExpiryDate1
		    {
				get
		        {
					if(_ExpiryDate1_W == null)
	        	    {
						_ExpiryDate1_W = TearOff.ExpiryDate1;
					}
					return _ExpiryDate1_W;
				}
			}

			public AggregateParameter ExpiryDate2
		    {
				get
		        {
					if(_ExpiryDate2_W == null)
	        	    {
						_ExpiryDate2_W = TearOff.ExpiryDate2;
					}
					return _ExpiryDate2_W;
				}
			}

			public AggregateParameter ExpiryDate3
		    {
				get
		        {
					if(_ExpiryDate3_W == null)
	        	    {
						_ExpiryDate3_W = TearOff.ExpiryDate3;
					}
					return _ExpiryDate3_W;
				}
			}

			public AggregateParameter ExpiryDate4
		    {
				get
		        {
					if(_ExpiryDate4_W == null)
	        	    {
						_ExpiryDate4_W = TearOff.ExpiryDate4;
					}
					return _ExpiryDate4_W;
				}
			}

			public AggregateParameter ExpiryDate5
		    {
				get
		        {
					if(_ExpiryDate5_W == null)
	        	    {
						_ExpiryDate5_W = TearOff.ExpiryDate5;
					}
					return _ExpiryDate5_W;
				}
			}

			public AggregateParameter ExpiryDate6
		    {
				get
		        {
					if(_ExpiryDate6_W == null)
	        	    {
						_ExpiryDate6_W = TearOff.ExpiryDate6;
					}
					return _ExpiryDate6_W;
				}
			}

			public AggregateParameter ExpiryDate7
		    {
				get
		        {
					if(_ExpiryDate7_W == null)
	        	    {
						_ExpiryDate7_W = TearOff.ExpiryDate7;
					}
					return _ExpiryDate7_W;
				}
			}

			public AggregateParameter ExpiryDate8
		    {
				get
		        {
					if(_ExpiryDate8_W == null)
	        	    {
						_ExpiryDate8_W = TearOff.ExpiryDate8;
					}
					return _ExpiryDate8_W;
				}
			}

			public AggregateParameter Status
		    {
				get
		        {
					if(_Status_W == null)
	        	    {
						_Status_W = TearOff.Status;
					}
					return _Status_W;
				}
			}

			public AggregateParameter BookingDate
		    {
				get
		        {
					if(_BookingDate_W == null)
	        	    {
						_BookingDate_W = TearOff.BookingDate;
					}
					return _BookingDate_W;
				}
			}

			private AggregateParameter _EntryVisaID_W = null;
			private AggregateParameter _FullName_W = null;
			private AggregateParameter _Email_W = null;
			private AggregateParameter _ConfirmEmail_W = null;
			private AggregateParameter _Tel_W = null;
			private AggregateParameter _Fax_W = null;
			private AggregateParameter _Address_W = null;
			private AggregateParameter _PortOfArrival_W = null;
			private AggregateParameter _ArrivalDate_W = null;
			private AggregateParameter _ExitDate_W = null;
			private AggregateParameter _VisaPeriod_W = null;
			private AggregateParameter _NumberOfEntry_W = null;
			private AggregateParameter _PurposeOfEntry_W = null;
			private AggregateParameter _PaymentID_W = null;
			private AggregateParameter _OtherRequest_W = null;
			private AggregateParameter _FullName1_W = null;
			private AggregateParameter _FullName2_W = null;
			private AggregateParameter _FullName3_W = null;
			private AggregateParameter _FullName4_W = null;
			private AggregateParameter _FullName5_W = null;
			private AggregateParameter _FullName6_W = null;
			private AggregateParameter _FullName7_W = null;
			private AggregateParameter _FullName8_W = null;
			private AggregateParameter _Gender1_W = null;
			private AggregateParameter _Gender2_W = null;
			private AggregateParameter _Gender3_W = null;
			private AggregateParameter _Gender4_W = null;
			private AggregateParameter _Gender5_W = null;
			private AggregateParameter _Gender6_W = null;
			private AggregateParameter _Gender7_W = null;
			private AggregateParameter _Gender8_W = null;
			private AggregateParameter _DoB1_W = null;
			private AggregateParameter _DoB2_W = null;
			private AggregateParameter _DoB3_W = null;
			private AggregateParameter _DoB4_W = null;
			private AggregateParameter _DoB5_W = null;
			private AggregateParameter _DoB6_W = null;
			private AggregateParameter _DoB7_W = null;
			private AggregateParameter _DoB8_W = null;
			private AggregateParameter _Nationality1_W = null;
			private AggregateParameter _Nationality2_W = null;
			private AggregateParameter _Nationality3_W = null;
			private AggregateParameter _Nationality4_W = null;
			private AggregateParameter _Nationality5_W = null;
			private AggregateParameter _Nationality6_W = null;
			private AggregateParameter _Nationality7_W = null;
			private AggregateParameter _Nationality8_W = null;
			private AggregateParameter _PassportNo1_W = null;
			private AggregateParameter _PassportNo2_W = null;
			private AggregateParameter _PassportNo3_W = null;
			private AggregateParameter _PassportNo4_W = null;
			private AggregateParameter _PassportNo5_W = null;
			private AggregateParameter _PassportNo6_W = null;
			private AggregateParameter _PassportNo7_W = null;
			private AggregateParameter _PassportNo8_W = null;
			private AggregateParameter _ExpiryDate1_W = null;
			private AggregateParameter _ExpiryDate2_W = null;
			private AggregateParameter _ExpiryDate3_W = null;
			private AggregateParameter _ExpiryDate4_W = null;
			private AggregateParameter _ExpiryDate5_W = null;
			private AggregateParameter _ExpiryDate6_W = null;
			private AggregateParameter _ExpiryDate7_W = null;
			private AggregateParameter _ExpiryDate8_W = null;
			private AggregateParameter _Status_W = null;
			private AggregateParameter _BookingDate_W = null;

			public void AggregateClauseReset()
			{
				_EntryVisaID_W = null;
				_FullName_W = null;
				_Email_W = null;
				_ConfirmEmail_W = null;
				_Tel_W = null;
				_Fax_W = null;
				_Address_W = null;
				_PortOfArrival_W = null;
				_ArrivalDate_W = null;
				_ExitDate_W = null;
				_VisaPeriod_W = null;
				_NumberOfEntry_W = null;
				_PurposeOfEntry_W = null;
				_PaymentID_W = null;
				_OtherRequest_W = null;
				_FullName1_W = null;
				_FullName2_W = null;
				_FullName3_W = null;
				_FullName4_W = null;
				_FullName5_W = null;
				_FullName6_W = null;
				_FullName7_W = null;
				_FullName8_W = null;
				_Gender1_W = null;
				_Gender2_W = null;
				_Gender3_W = null;
				_Gender4_W = null;
				_Gender5_W = null;
				_Gender6_W = null;
				_Gender7_W = null;
				_Gender8_W = null;
				_DoB1_W = null;
				_DoB2_W = null;
				_DoB3_W = null;
				_DoB4_W = null;
				_DoB5_W = null;
				_DoB6_W = null;
				_DoB7_W = null;
				_DoB8_W = null;
				_Nationality1_W = null;
				_Nationality2_W = null;
				_Nationality3_W = null;
				_Nationality4_W = null;
				_Nationality5_W = null;
				_Nationality6_W = null;
				_Nationality7_W = null;
				_Nationality8_W = null;
				_PassportNo1_W = null;
				_PassportNo2_W = null;
				_PassportNo3_W = null;
				_PassportNo4_W = null;
				_PassportNo5_W = null;
				_PassportNo6_W = null;
				_PassportNo7_W = null;
				_PassportNo8_W = null;
				_ExpiryDate1_W = null;
				_ExpiryDate2_W = null;
				_ExpiryDate3_W = null;
				_ExpiryDate4_W = null;
				_ExpiryDate5_W = null;
				_ExpiryDate6_W = null;
				_ExpiryDate7_W = null;
				_ExpiryDate8_W = null;
				_Status_W = null;
				_BookingDate_W = null;

				this._entity.Query.FlushAggregateParameters();

			}
	
			private EasyObject _entity;
			private TearOffAggregateParameter _tearOff;
			
		}
	
		public AggregateClause Aggregate
		{
			get
			{
				if(_aggregateClause == null)
				{
					_aggregateClause = new AggregateClause(this);
				}
		
				return _aggregateClause;
			}
		}
		
		private AggregateClause _aggregateClause = null;	
		#endregion
	}
}
